N-Tron 102PC-SE User Manual

Page 18

Advertising
background image

(Revised 2010-11-15)

18

Socket

(Actions to take over a UDP socket)

o close

(closes a socket by its handle <socket_handle>)

o closeall

(closes all the sockets)

o flush

(flush out a socket by its handle <socket_handle>)

o flushall

(flush out all the sockets)

o listall

(lists all the sockets (TCP connect, TCP listen, and UDP sockets))

o listlisten

(lists all the TCP listen sockets)

o recv [-s <max_size>] <socket_handle>

(receive over a socket)

o send < [-s <size>] [-d <delimiter>] > [-m <MTU>] <socket_handle>

(send over a socket)

o stat [-s] [-d] <socket_handle>

(lists stats for sockets, -s: socket only, -d: socket detail)

o tcp <remote_ip> <remote_port>

(set up the tcp socket information)

o tcplisten <local_port> [backlog]

(listen on a TCP socket)

o udp <remote_ip> <remote_port> [local_port] (for UDP server set remote_ip to 0.0.0.0)

note: local_port is required for UDP server

Telnet

(Allows telnet sessions from the hyper terminal over the serial port)


Ftp

(Allows FTP sessions from the hyper terminal over the serial port)


Exit

(Logs the user off the telnet or hyper terminal session)


Restore default-config

(Sets all config settings back to the default configuration file)

Advertising