source: BAORadio/libindi/v1/drivers/telescope/ServerSocket.h@ 689

Last change on this file since 689 was 493, checked in by frichard, 15 years ago

Le programme gère mieux les connexion/déconnexion des microcontrôleurs.

File size: 537 bytes
Line 
1// Definition of the ServerSocket class
2
3#ifndef ServerSocket_class
4#define ServerSocket_class
5
6#include "Socket.h"
7
8
9
10
11class ServerSocket : private Socket
12{
13 public:
14
15 ServerSocket ( int port );
16 ServerSocket (){};
17 virtual ~ServerSocket();
18
19 const ServerSocket& operator << ( const std::string& ) const;
20 const ServerSocket& operator >> ( std::string& ) const;
21
22 void accept ( ServerSocket& );
23
24 void shutdown ( );
25
26 void create();
27
28 bool connect(std::string IP );
29
30 std::string recupip( ServerSocket& );
31};
32
33
34#endif
Note: See TracBrowser for help on using the repository browser.