Description
Creates the Windows socket and bind it to the specified address
Syntax
socket.create([port[, type[, event[, address]]]])
Parameters
| Value | Description |
| $SOCK_STREAM | Provides sequenced, reliable, two-way, connection-based byte streams with an out-of-band data transmission mechanism. Uses TCP for the Internet address family. |
| $SOCK_DGRAM | Supports datagrams, which are connectionless, unreliable buffers of a fixed (typically small) maximum length. Uses UDP for the Internet address family. |
| Value | Description |
| $FD_READ | Want to receive notification of readiness for reading. |
| $FD_WRITE | Want to receive notification when data is available to be read. |
| $FD_OOB | Want to receive notification of the arrival of out-of-band data. |
| $FD_ACCEPT | Want to receive notification of incoming connections. |
| $FD_CONNECT | Want to receive notification of connection results. |
| $FD_CLOSE | Want to receive notification when a socket has been closed by a peer. |
Returns
Boolean.