Go to the documentation of this file.
43 #ifndef CCXX_SOCKETPORT_H_
44 #define CCXX_SOCKETPORT_H_
46 #ifndef CCXX_ADDRESS_H_
50 #ifndef CCXX_SOCKET_H_
54 #ifdef CCXX_NAMESPACES
86 struct timeval porttimer;
95 bool detect_disconnect;
162 void setDetectPending(
bool );
167 bool getDetectPending(
void )
const
168 {
return detect_pending; }
174 void setDetectOutput(
bool );
179 bool getDetectOutput(
void )
const
180 {
return detect_output; }
186 virtual void expired(
void);
192 virtual void pending(
void);
198 virtual void output(
void);
204 virtual void disconnect(
void);
230 inline ssize_t send(
const void *buf,
size_t len)
231 {
return _IORET64 ::send(so, (
const char *)buf,
_IOLEN64 len, 0);};
241 inline ssize_t receive(
void *buf,
size_t len)
242 {
return _IORET64 ::recv(so, (
char *)buf,
_IOLEN64 len, 0);};
252 inline ssize_t peek(
void *buf,
size_t len)
253 {
return _IORET64 ::recv(so, (
char *)buf,
_IOLEN64 len, MSG_PEEK);};
328 virtual void onUpdate(
unsigned char buf);
335 virtual void onEvent(
void);
357 void update(
unsigned char flag = 0xff);
367 SocketService(
int pri = 0,
size_t stack = 0,
const char *
id = NULL);
381 inline int getCount(
void)
const
385 #ifdef CCXX_NAMESPACES