User Tools

Site Tools




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

Network sample program

go MOACON home

moacon/netsend/index.txt · Last modified: 2016/04/14 11:07 (external edit)