N-Tron 102PC-SE user manual Socket Actions to take over a UDP socket

Page 17

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

 

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

12/1/2006

17

Image 17
Contents 12/1/2006 Table of Contents 12/1/2006 Contact Information Safety WarningsEnvironmental Safety Electrical Safety Unpacking Package ContentsCleaning DIN Rail Mounting ServicingColor Description Front PanelApplying Power Top View Grounding Techniques Connecting the Unit RS-232 Serial InterfaceSerial Cable Support FCC Statement TroubleshootingCLI Tree of Menus Set Set configurable fields Serial Configure the serial settings for the serial port s0 Recv-mail Configure incoming mail optionsSend-mail Configure outgoing mail options Show Show general and detailed information Socket Actions to take over a UDP socket Web Management Software Configuration12/1/2006 User Configuration General ConfigurationPort Configuration Web Management Tree of MenusBridge Configuration Modem ConfigurationPPP Configuration ChatscriptSuccessfully. These cannot be modified Telnet ConfigurationAutodial Configuration UDP ConfigurationSnmp Configuration Http ConfigurationSmtp Address Configuration POP3 ConfigurationCommands Sntp Daylight Saving ConfigurationRestore Defaults Sntp GeneralEthernet to Serial Connectivity Mandatory Configuration SettingsScenario 1 Manual Dialout Commands to Setup Manual Dial-out with the 102PC-SEPrerequisites Scenario 2 Auto Dialout Using TelnetAuto Dialout Feature using UDP Mode Scenario 3 Auto Dialout Using UDPScenario 4 Remote Bridging with Modem Connection # set ppp ppp0 raw-mode enableSerial to Ethernet Connectivity Scenario 1 Manual Serial Dial-in Commands to Setup Manual Dial-In with the 102PC-SEScenario 2 Serial Auto Dial-in Using Telnet Functionality Scenario 3 Serial Auto Dial-in Using UDP# set serial s0 raw-dialout enable Scenario 4 Serial Tunneling Mode# set ip telnet raw-mode enable Using E-Mail Features Sending Text E-mails from the Command Prompt Receiving E-mails from the Command Prompt Switch Properties KEY SpecificationsEmissions and Safety Approvals PhysicalTron Limited Warranty