multiple syntax updates to adjust for 1.11.0.6946 SM build

This commit is contained in:
jenz
2023-08-29 18:11:52 +02:00
parent 69f859f2ea
commit c00a625910
6 changed files with 195 additions and 15 deletions
+6 -5
View File
@@ -202,7 +202,7 @@ enum SocketOption {
*/
typeset SocketConnectCB
{
function void(Handle socket, any arg);
function void(Handle socket, int arg);
};
/**
@@ -218,7 +218,7 @@ typeset SocketConnectCB
*/
typeset SocketIncomingCB
{
function void(Handle socket, Handle newSocket, const char remoteIP[], char remotePort, any arg);
function void(Handle socket, Handle newSocket, const char remoteIP[64], char remotePort, any arg);
};
/**
@@ -237,7 +237,7 @@ typeset SocketIncomingCB
*/
typeset SocketReceiveCB
{
function void(Handle socket, const char receiveData[], const int dataSize, any arg);
function void(Handle socket, char receiveData[3500], int dataSize, int arg);
};
/**
@@ -263,7 +263,7 @@ typeset SocketSendqueueEmptyCB
*/
typeset SocketDisconnectCB
{
function void(Handle socket, any arg);
function void(Handle socket, int arg);
};
/**
@@ -333,7 +333,8 @@ native bool SocketBind(Handle socket, const char[] hostname, char port);
* @param cell_t port The port to connect to.
* @noreturn
*/
native void SocketConnect(Handle socket, SocketConnectCB cfunc, SocketReceiveCB rfunc, SocketDisconnectCB dfunc, const char[] hostname, char port);
//native void SocketConnect(Handle socket, SocketConnectCB cfunc, SocketReceiveCB rfunc, SocketDisconnectCB dfunc, char[] hostname , int port);
native void SocketConnect(Handle socket, SocketConnectCB cfunc, SocketReceiveCB rfunc, SocketDisconnectCB dfunc, char[] hostname, char port);
/**
* Disconnects a socket