moacon:netsend:index
netSend
u8 netSend(u8 socketNum, u8* buffer, u16 length)
| socketNum : The socket number (0~3) |
| buffer : The location of the data to send |
| length : The number of bytes to send |
| Returns 1 if successful, 0 otherwise |
Sends length bytes of data in buffer out socket, socketNum. This function is especially useful for sending binary data. A connection must be established (SOCK_ESTABLILSHED) to send data.
u8 data[] = "Comfile"; netSend(0, data, 7);
moacon/netsend/index.txt · Last modified: by 127.0.0.1
