server ---by C:
#include
#include
#include
#include ...include
//int recv(int s, void *buf, int len, unsigned int flags);
// recv() 用于接受socket传来的数据..., 并把数据存到有参数buf指定的内存空间, 参数len为接受数据的最大长度
//int recvfrom(int s, void *buf, int len, unsigned int flags,...);
printf("python: %s\n", buf);
char str[1024] = "";// = "hello world, this is from C!...;
printf("C:");
scanf("%c", str);
write(clnt_sock, str, sizeof(str));