随笔分类 - Network
摘要:服务端:hello_server.c#include #include #include #include #include #include void error_handling(char *message);int main(int argc, char *argv[]){ int se...
阅读全文
摘要: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)...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:1. 首先,要编写windows下socket程序,必须要加入Winsock支持2. 服务端监听程序(Server.cpp)#include //包含头文件#include#include#pragma comment(lib,"WS2_32.lib")...
阅读全文