Showing
2 changed files
with
8 additions
and
4 deletions
... | ... | @@ -87,8 +87,9 @@ tcpSocketConnect(void * _this) |
87 | 87 | |
88 | 88 | static |
89 | 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 | 93 | TR_RemoteData rdata = NULL; |
93 | 94 | ssize_t received; |
94 | 95 | |
... | ... | @@ -109,8 +110,9 @@ tcpSocketRecv(TR_Socket this, size_t size) |
109 | 110 | |
110 | 111 | static |
111 | 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 | 116 | return send( |
115 | 117 | this->handle, |
116 | 118 | ((TR_SizedData)data)->data, | ... | ... |
... | ... | @@ -49,8 +49,9 @@ udpSocketCtor(void * _this, va_list * params) |
49 | 49 | |
50 | 50 | static |
51 | 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 | 55 | ssize_t received; |
55 | 56 | TR_RemoteData rdata; |
56 | 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 | 82 | |
82 | 83 | static |
83 | 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 | 88 | ssize_t send; |
87 | 89 | |
88 | 90 | send = sendto( | ... | ... |
Please
register
or
login
to post a comment