随笔分类 - 套接口编程
摘要://功能:读取文件文件,向指定服务器的指定端口发送UDP包,//2015.9.26 OK#include #include #include #include #include #include //#define SERVER_PORT 8000int SERVER_PORT = 8000;int...
阅读全文
摘要:/******************************************************************************** 功能:读取时间码,设置本地时间 ** 文件: ...
阅读全文
摘要:/******************************************************************************** 标题: 读取本地时间发送时间码 ** 文件: ...
阅读全文
摘要:#include #include #include #include #include #include #include #include #include int port = 8000;int main() { struct sockaddr_in sin; struct s...
阅读全文
摘要://功能:客服端发送tcp包,服务器接受到并打印出来,并将包转换为大写后到客户端//2015.9.10成功#include #include #include #include #include int port = 8000;int main(){ struct sockaddr_in...
阅读全文
摘要://功能:客服端发送UDP包,服务器接受到并打印出来//2015.9.13成功#include #include #include #include #include int port = 8000;int main(){ struct sockaddr_in sin,cliaddr; ...
阅读全文
摘要://功能:客户端发送TCP包,此程序接受到,将字母转换为大写,在发送到客户端#include #include #include #include #include int port = 8000;int main(){ struct sockaddr_in sin,cliaddr; ...
阅读全文
浙公网安备 33010602011771号