socket
Contents
| Name | Description |
|---|---|
| bind( where ) | Bind a socket to a network interface |
| close( ) | no short description provided |
| connect( endpoint ) | Connects a socket to another |
| fd | The opaque socket descriptor for this socket. |
| receive( callback ) | no short description provided |
| send( callback ) | Sends some message to the other side of a connected or bound socket |
bind( string where )
Bind a socket to a network interface
Parameters
-
where (string)
Where to connect this socket to
Defined at shared/lua_api/load_net.cpp:462
close( )
no short description provided
Defined at shared/lua_api/load_net.cpp:576
connect( string endpoint )
Connects a socket to another
Parameters
-
endpoint (string)
The endpoint to connect this socket to
Defined at shared/lua_api/load_net.cpp:492
fd
receive( function callback )
no short description provided
Parameters
-
callback (function)
The function to call when this message is received
Defined at shared/lua_api/load_net.cpp:549
send( function callback )
Sends some message to the other side of a connected or bound socket
Parameters
-
callback (function)
The function to call to send the data
Defined at shared/lua_api/load_net.cpp:513