⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 this gives details of the network programming
💻
字号:
Generic TCP clientNOTE: This code is available on the CS machines in 	~hollingd/public.html/netprog/code/generictcpThis is a client that uses the select() system call to watch twofile descriptors for intput: a tcp socket and STDIN. Anything readfrom STDIN is sent to the socket, and anything that is read from the socketis sent to STDOUT. This is an example of using select(), and is alsouseful for testing TCP servers - just make a text file that containsthe request and pipe it to this program.-----------------The client attempts to connect to the TCP indicated by the command lineparameters. The parameters are the IP address or hostnameand the port number. For example, to tell the client that the serveris running on the machine www.cs.rpi.edu port 80the client should be started like this:tcpclient www.cs.rpi.edu 80You could also put a request in a file named "req", and then do this:cat req | tcpclient www.cs.rpi.edu 80Questions should be sent to netprog@cs.rpi.edu

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -