|
|
|
@ -47,7 +47,7 @@ TR_commManagerAddEndpoint(void * _this, TR_CommEndPoint endpoint) |
|
|
|
TR_CALL(_this, TR_CommManager, addEndpoint, endpoint); |
|
|
|
} |
|
|
|
|
|
|
|
int |
|
|
|
TR_EventDone |
|
|
|
TR_commManagerSelect(void * _this, TR_Event event) |
|
|
|
{ |
|
|
|
int timeout; // milliseconds |
|
|
|
@ -62,17 +62,19 @@ TR_commManagerSelect(void * _this, TR_Event event) |
|
|
|
} |
|
|
|
|
|
|
|
TR_CALL(_this, TR_CommManager, select, event, timeout); |
|
|
|
return 1; |
|
|
|
|
|
|
|
return TR_EVENT_DONE; |
|
|
|
} |
|
|
|
|
|
|
|
int |
|
|
|
TR_EventDone |
|
|
|
TR_commManagerEnableWrite(void * _this, TR_Event event) |
|
|
|
{ |
|
|
|
TR_CALL(_this, TR_CommManager, enableWrite, event); |
|
|
|
return 1; |
|
|
|
|
|
|
|
return TR_EVENT_DONE; |
|
|
|
} |
|
|
|
|
|
|
|
int |
|
|
|
TR_EventDone |
|
|
|
TR_commManagerDisableWrite(void * _this, TR_Event event) |
|
|
|
{ |
|
|
|
TR_EventHandler this = _this; |
|
|
|
@ -89,10 +91,10 @@ TR_commManagerDisableWrite(void * _this, TR_Event event) |
|
|
|
NULL)); |
|
|
|
} |
|
|
|
|
|
|
|
return 1; |
|
|
|
return TR_EVENT_DONE; |
|
|
|
} |
|
|
|
|
|
|
|
int |
|
|
|
TR_EventDone |
|
|
|
TR_commManagerClose(void * _this, TR_Event event) |
|
|
|
{ |
|
|
|
TR_CommManager this = _this; |
|
|
|
@ -102,10 +104,10 @@ TR_commManagerClose(void * _this, TR_Event event) |
|
|
|
TR_CALL(_this, TR_CommManager, close, event); |
|
|
|
TR_delete(this->endpoints[endpoint->transport->handle]); |
|
|
|
|
|
|
|
return 0; |
|
|
|
return TR_EVENT_DONE; |
|
|
|
} |
|
|
|
|
|
|
|
int |
|
|
|
TR_EventDone |
|
|
|
TR_commManagerShutdownRead(void * _this, TR_Event event) |
|
|
|
{ |
|
|
|
TR_CALL(_this, TR_CommManager, shutdownRead, event); |
|
|
|
@ -130,10 +132,10 @@ TR_commManagerShutdownRead(void * _this, TR_Event event) |
|
|
|
TR_cepSetClose((TR_CommEndPoint)event->subject); |
|
|
|
} |
|
|
|
|
|
|
|
return 0; |
|
|
|
return TR_EVENT_DONE; |
|
|
|
} |
|
|
|
|
|
|
|
int |
|
|
|
TR_EventDone |
|
|
|
TR_commManagerShutdownWrite(void * _this, TR_Event event) |
|
|
|
{ |
|
|
|
TR_CALL(_this, TR_CommManager, shutdownWrite, event); |
|
|
|
@ -147,8 +149,7 @@ TR_commManagerShutdownWrite(void * _this, TR_Event event) |
|
|
|
NULL)); |
|
|
|
} |
|
|
|
|
|
|
|
return 0; |
|
|
|
return TR_EVENT_DONE; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// vim: set ts=4 sw=4: |