echoserv
所属分类:Ftp服务器
开发工具:C/C++
文件大小:3KB
下载次数:6
上传日期:2010-05-06 01:46:52
上 传 者:
rnraju
说明: This program demonstrates a simple TCP/IP server. It will accept a connection from a client application, receive one line of text, echo that line back to the client and close the connection.
文件列表:
Makefile (250, 2000-07-18)
echoserv.c (2987, 2000-07-18)
helper.c (1288, 2000-07-18)
helper.h (649, 2000-07-18)
ECHOSERV
========
(c) Paul Griffiths, 1999
Email: mail@paulgriffiths.net
Function
========
Demonstrates a simple TCP/IP echo server, using the
Berkeley Sockets API.
Usage
=====
Example of usage:
[paul@localhost paul]$ ./echoserv 5555 &
[paul@localhost paul]$ telnet localhost 5555
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Echo this line for me, please.
Echo this line for me, please.
Connection closed by foreign host.
[paul@localhost paul]$
Installation
============
If your system supports make, simply type:
make
at the command line. Otherwise, compile and link echoserv.c and
help.c in the usual way to create the executable. You may or may
not need to link in additional libraries for the sockets functions;
check your compiler's documentation.
近期下载者:
相关文件:
收藏者: