文件名称:bscs
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:4.85kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
c/s服务器客户/服务器模式
(1)编译client.c 和server.c
gcc client.c –o client
gcc server.c –o server
(2)打开一个终端,运行server 程序
./server
(3)打开另外一个终端,运行client 程序
client 程序的运行需要提供hostname 参数,所以我们要用hostname 命令查看机器的名
字,然后再运行client 程序;
(4)运行结果
-c/s server, client/server mode (1) compile client.c and server.c gcc client.c-o client gcc server.c-o server (2) Open a terminal, run the server program./server (3) Open another terminal, run the client program to run client programs need to provide the hostname parameter, so we use the hostname command to view the machine' s name, and then run the client program (4) The results
(1)编译client.c 和server.c
gcc client.c –o client
gcc server.c –o server
(2)打开一个终端,运行server 程序
./server
(3)打开另外一个终端,运行client 程序
client 程序的运行需要提供hostname 参数,所以我们要用hostname 命令查看机器的名
字,然后再运行client 程序;
(4)运行结果
-c/s server, client/server mode (1) compile client.c and server.c gcc client.c-o client gcc server.c-o server (2) Open a terminal, run the server program./server (3) Open another terminal, run the client program to run client programs need to provide the hostname parameter, so we use the hostname command to view the machine' s name, and then run the client program (4) The results
(系统自动生成,下载前可以参看下载内容)
下载文件列表
bscs.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.