forked from blitz-research/monkey2
-
Notifications
You must be signed in to change notification settings - Fork 0
std.socket.Socket
simon edited this page Jul 26, 2018
·
1 revision
std::std.socket.Socket
Class Socket Extends std:std.resource.Resource
The Socket class.
The socket class provides a thin wrapper around native Winsock and BSD sockets.
Sockets support asynchronous programming through the use of fibers. To connect, send or receive asynchronously, simply run the relevant socket code on its own fiber. Control will be returned to the 'main' gui fiber will the operation is busy.
Sockets are ipv4/ipv6 compatible.
Properties | |
---|---|
[[Address | Address]] |
[[CanReceive | CanReceive]] |
[[Closed | Closed]] |
[[Connected | Connected]] |
[[PeerAddress | PeerAddress]] |
Methods | |
---|---|
[[Accept | Accept]] |
[[Close | Close]] |
[[GetOption | GetOption]] |
[[Receive | Receive]] |
[[ReceiveFrom | ReceiveFrom]] |
[[Send | Send]] |
[[SendTo | SendTo]] |
[[SetOption | SetOption]] |
Functions | |
---|---|
[[Bind | Bind]] |
[[Connect | Connect]] |
[[Listen | Listen]] |