client socket include <sys/types.h> include <sys/socket.h> include <stdio.h> include <netinet/in.h> include <arpa/inet.h> include <unistd.h> int main() { int sockfd int len struct sockaddr_in address int result char ch = A sockfd = socket(AF_INET, SOCK_STREAM, 0) address.sin_family = AF_INET address.sin_addr.s_addr = inet_addr("127.0.0.1") address.sin_port = 9734 len = sizeof(address) result = connect(sockfd, (struct sockaddr *)&address, len) if(result == -1) { perror("oops: client") exit(1) } write(sockfd, &ch, 1) read(sockfd, &ch, 1) printf("char from server = c\n", ch) close(sockfd) exit(0) }
上传时间: 2017-07-29
上传用户:wab1981
it is a 2 way filtransfer server/client program
标签: filtransfer program client server
上传时间: 2014-01-10
上传用户:jennyzai
FTP client source code
上传时间: 2014-02-13
上传用户:www240697738
德国人用VB开发的DDE SERVER AND client
上传时间: 2017-08-02
上传用户:VRMMO
arm9上udp源码的实现,编程语言是C语言.包括client和server 两端的代码.上课时老师给的.
上传时间: 2017-08-03
上传用户:gxf2016
ntpclient是通过网络进行系统时间校准的client端程序。从而使多个终端能够保证时间同步性。
上传时间: 2017-08-05
上传用户:refent
Java Non Block client sokcet
上传时间: 2017-08-07
上传用户:三人用菜
distributied system chat client
标签: distributied client system chat
上传时间: 2017-08-09
上传用户:一诺88
* TFTP client compatible with RFC-1350 * compile under visiual c++ or borland c++ * author email: yuyushine@163.com ***************************************************/ #define _VC /* if compile under visiual c++ else undefine this*/ #include <stdio.h> #include <winsock.h> #include <conio.h> #ifndef MAKEWORD #define MAKEWORD(l,h) ((WORD)(((BYTE)(l))|(((WORD)(BYTE)(h))<<8))) #endif #define WSA_MAJOR_VERSION 1 #define WSA_MINOR_VERSION 1 #define WSA_VERSION MAKEWORD(WSA_MAJOR_VERSION, WSA_MINOR_VERSION)
标签: compatible borland compile visiual
上传时间: 2014-01-15
上传用户:yuchunhai1990
open source dhcp server client etc...
上传时间: 2014-01-06
上传用户:sunjet