summaryrefslogtreecommitdiff
path: root/protocols/Tlen/src/tlen_ws.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tlen/src/tlen_ws.cpp')
-rw-r--r--protocols/Tlen/src/tlen_ws.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Tlen/src/tlen_ws.cpp b/protocols/Tlen/src/tlen_ws.cpp
index eaa952d33b..98b21892d4 100644
--- a/protocols/Tlen/src/tlen_ws.cpp
+++ b/protocols/Tlen/src/tlen_ws.cpp
@@ -55,7 +55,7 @@ void TlenWsUninit(TlenProtocol *proto)
proto->hFileNetlibUser = NULL;
}
-HANDLE TlenWsConnect(TlenProtocol *proto, char *host, WORD port)
+HNETLIBCONN TlenWsConnect(TlenProtocol *proto, char *host, WORD port)
{
NETLIBOPENCONNECTION nloc = {};
nloc.cbSize = sizeof(NETLIBOPENCONNECTION); //NETLIBOPENCONNECTION_V1_SIZE;
@@ -66,7 +66,7 @@ HANDLE TlenWsConnect(TlenProtocol *proto, char *host, WORD port)
return Netlib_OpenConnection(proto->m_hNetlibUser, &nloc);
}
-int TlenWsSend(TlenProtocol *proto, HANDLE s, char *data, int datalen)
+int TlenWsSend(TlenProtocol *proto, HNETLIBCONN s, char *data, int datalen)
{
int len;
if ((len=Netlib_Send(s, data, datalen, /*MSG_NODUMP|*/MSG_DUMPASTEXT)) == SOCKET_ERROR || len != datalen) {
@@ -76,7 +76,7 @@ int TlenWsSend(TlenProtocol *proto, HANDLE s, char *data, int datalen)
return TRUE;
}
-int TlenWsRecv(TlenProtocol *proto, HANDLE s, char *data, long datalen)
+int TlenWsRecv(TlenProtocol *proto, HNETLIBCONN s, char *data, long datalen)
{
int ret;
ret = Netlib_Recv(s, data, datalen, /*MSG_NODUMP|*/MSG_DUMPASTEXT);