Home| base |src.bin|tcpip| ipserver Index

ipserver

Syntax
ipserver --help
ipserver [-L logname] [-pf portname] [-if pidname] [-lp port]
Synopsis

Simple TCP/IP server program.

Options
--helpprint the help message and exit.
-L lognamelog connections and information in the file logname. By default, connections are recorded in log.rt.
-pf portnamerecord the port number that the server is listening for connections on in the file portname. By default, the port is recorded in port.id.
-if pidnamerecord the process Identifier (PID) of the server in the file pidname. By default, the PID is recorded in pid.id.
-lp portforce the server to listen on the local port number port. By default, the server requests a port number from the Operating System.
Description

The task is a demonstration of a TCP/IP server. It waits for clients to connect and then sends a string containing the date and time to them every few seconds.

Examples
ipserver -L log  -pf port.id  -if pid.id

Listen for clients on a port allocated by the operating system. The port number is recorded in the file "port.id", the process identifier is recorded in the file "pid.id", and logs of all transactions are recorded in the file "log.xxx" where xxx is the day of the year.

ipserver -L log  -pf port.id  -if pid.id -lp 5000

Listen for clients on a port 5000. The port number is recorded in the file "port.id", the process identifier is recorded in the file "pid.id", and logs of all transactions are recorded in the file "log.xxx" where xxx is the day of the year.