User Tools

Site Tools

한국어

moacon:socketopen:index

socketOpen

u8 socketOpen (u8 socketNum, u16 port)

socketNum : The socket number (0~3)
port: TCP port
Returns 1 if successful, 0 otherwise

Opens a socket, socketNum, on the TCP port, port. Port can be any number from 0 through 65,535.

NOTE: Any socket opened with a call to socketOpen must eventually be closed with a call to socketClose. The Ethernet module is not reset when the CPU module is reset, so, it may be necessary to call socketClose at the beginning of a program to be sure the socket is closed before it is used.

Network sample program

go MOACON home

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