Changeset 3757 in Sophya for trunk/AddOn/TAcq/swrapsock.h
- Timestamp:
- Apr 30, 2010, 12:54:25 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/swrapsock.h
r3542 r3757 36 36 public: 37 37 Socket(int s=-1); 38 //Socket(Socket const & a);38 Socket(Socket const & a); 39 39 ~Socket(); 40 40 … … 42 42 size_t Receive(char * buff, size_t len, int flag=0); 43 43 int Close(); 44 45 inline Socket& operator=(Socket const & a) 46 { Set(a); return (*this); } 47 44 48 inline int SetPrtLevel(int lev=0) 45 49 { if (lev > 0) prtlev = lev; return prtlev; } 50 inline long NBytesSent() { return totsnd; } 51 inline long NBytesRecv() { return totrcv; } 52 53 protected: 54 void Set(Socket const & a); 46 55 47 protected:48 49 56 int skt; 50 57 long tstart; /* Temps de demarrage en sec */ … … 89 96 ClientSocket(string const& srvname, int port); 90 97 ClientSocket(const char* srvname, int port); 98 ClientSocket(ClientSocket const& a); 99 inline ClientSocket& operator=(ClientSocket const& a) 100 { SetC(a); return (*this); } 91 101 protected: 102 void SetC(ClientSocket const& a); 92 103 void InitConnection(const char* srvname, int port); 104 93 105 int portid; 94 106 struct sockaddr_in ipskt;
Note:
See TracChangeset
for help on using the changeset viewer.