Cleanup and renaming the methodmap
This commit is contained in:
1 parent
3ff141c303
commit
291dcfe41c
2 files changed
+8
-5
No files matched your search
@@ -6,14 +6,14 @@
|
||||
#endif
|
||||
#define _async_socket_included
|
||||
|
||||
typedef AsyncSocketConnectCallback = function void(Socket socket);
|
||||
typedef AsyncSocketConnectCallback = function void(AsyncSocket socket);
|
||||
|
||||
typedef AsyncSocketErrorCallback = function void(Socket socket, int error, const char[] errorName);
|
||||
typedef AsyncSocketErrorCallback = function void(AsyncSocket socket, int error, const char[] errorName);
|
||||
|
||||
typedef AsyncSocketDataCallback = function void(Socket socket, const char[] data, const int size);
|
||||
typedef AsyncSocketDataCallback = function void(AsyncSocket socket, const char[] data, const int size);
|
||||
|
||||
methodmap Socket < Handle {
|
||||
public native Socket();
|
||||
methodmap AsyncSocket < Handle {
|
||||
public native AsyncSocket();
|
||||
|
||||
public native bool Connect(const char[] host, const int port);
|
||||
|
||||
|
||||
Reference in new issue
Block a user