Cleanup and renaming the methodmap

This commit is contained in:
Nikki
2015-05-21 15:59:45 -04:00
parent 3ff141c303
commit 291dcfe41c
2 changed files with 8 additions and 5 deletions

View File

@ -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);