Showing
2 changed files
with
8 additions
and
4 deletions
@@ -87,8 +87,9 @@ tcpSocketConnect(void * _this) | @@ -87,8 +87,9 @@ tcpSocketConnect(void * _this) | ||
87 | 87 | ||
88 | static | 88 | static |
89 | TR_RemoteData | 89 | TR_RemoteData |
90 | -tcpSocketRecv(TR_Socket this, size_t size) | 90 | +tcpSocketRecv(void * _this, size_t size) |
91 | { | 91 | { |
92 | + TR_Socket this = _this; | ||
92 | TR_RemoteData rdata = NULL; | 93 | TR_RemoteData rdata = NULL; |
93 | ssize_t received; | 94 | ssize_t received; |
94 | 95 | ||
@@ -109,8 +110,9 @@ tcpSocketRecv(TR_Socket this, size_t size) | @@ -109,8 +110,9 @@ tcpSocketRecv(TR_Socket this, size_t size) | ||
109 | 110 | ||
110 | static | 111 | static |
111 | ssize_t | 112 | ssize_t |
112 | -tcpSocketSend(TR_Socket this, TR_RemoteData data) | 113 | +tcpSocketSend(void * _this, TR_RemoteData data) |
113 | { | 114 | { |
115 | + TR_Socket this = _this; | ||
114 | return send( | 116 | return send( |
115 | this->handle, | 117 | this->handle, |
116 | ((TR_SizedData)data)->data, | 118 | ((TR_SizedData)data)->data, |
@@ -49,8 +49,9 @@ udpSocketCtor(void * _this, va_list * params) | @@ -49,8 +49,9 @@ udpSocketCtor(void * _this, va_list * params) | ||
49 | 49 | ||
50 | static | 50 | static |
51 | TR_RemoteData | 51 | TR_RemoteData |
52 | -udpSocketRecv(TR_Socket this, size_t size) | 52 | +udpSocketRecv(void * _this, size_t size) |
53 | { | 53 | { |
54 | + TR_Socket this = _this; | ||
54 | ssize_t received; | 55 | ssize_t received; |
55 | TR_RemoteData rdata; | 56 | TR_RemoteData rdata; |
56 | TR_Socket remote = TR_new(TR_UdpSocket, this->log, NULL, 0, 0); | 57 | TR_Socket remote = TR_new(TR_UdpSocket, this->log, NULL, 0, 0); |
@@ -81,8 +82,9 @@ udpSocketRecv(TR_Socket this, size_t size) | @@ -81,8 +82,9 @@ udpSocketRecv(TR_Socket this, size_t size) | ||
81 | 82 | ||
82 | static | 83 | static |
83 | ssize_t | 84 | ssize_t |
84 | -udpSocketSend(TR_Socket this, TR_RemoteData data) | 85 | +udpSocketSend(void * _this, TR_RemoteData data) |
85 | { | 86 | { |
87 | + TR_Socket this = _this; | ||
86 | ssize_t send; | 88 | ssize_t send; |
87 | 89 | ||
88 | send = sendto( | 90 | send = sendto( |
Please
register
or
login
to post a comment