随笔分类 -  Network

摘要:服务端:hello_server.c#include #include #include #include #include #include void error_handling(char *message);int main(int argc, char *argv[]){ int se... 阅读全文
posted @ 2015-10-08 14:10 Master HaKu 阅读(14893) 评论(0) 推荐(0) 编辑
摘要:UDP provides an end-to-end service different from that of TCP.In fact, UDP performs only two functions:(1) it adds another layer of addressing (ports)... 阅读全文
posted @ 2015-09-29 16:22 Master HaKu 阅读(696) 评论(0) 推荐(0) 编辑
摘要:1. What Is a Socket?(什么是套接字)A socket is an abstraction through which an application may send and receive data, in muchthe same way as an open-file han... 阅读全文
posted @ 2015-09-20 13:31 Master HaKu 阅读(298) 评论(0) 推荐(0) 编辑
摘要:1. TCP ServerThe server’s job is to set up an endpoint for clients to connect to and passively wait for connections. The typical TCP server goes throu... 阅读全文
posted @ 2015-08-10 11:11 Master HaKu 阅读(3168) 评论(0) 推荐(0) 编辑
摘要:1. 首先,要编写windows下socket程序,必须要加入Winsock支持2. 服务端监听程序(Server.cpp)#include //包含头文件#include#include#pragma comment(lib,"WS2_32.lib")... 阅读全文
posted @ 2015-04-21 13:43 Master HaKu 阅读(330) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示