LinuxC language service and client multi-process communication

Link: https: //pan.baidu.com/s/1YDNIyTKAkh4E5x2dBeTgcQ
extraction code: y35q
copy the contents of this open Baidu network disk phone App, the operation more convenient oh

This experiment is Centos7
mytcp2, server and client communications, socket realization
1.
In the directory server and client,
respectively, in the ip address tnet.c into its own IP address on it.
= the inet_addr serv.sin_addr.s_addr ( "192.168.202.131");
2.
In the implementation of the server: make

3. The
implementation of the client: make

 

Guess you like

Origin www.cnblogs.com/smarkshare/p/11259544.html