![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C&NetWork
symield
这个作者很懒,什么都没留下…
展开
-
A simply client code for that server.
#include #include #include #include #include #define PORT 3490#define MAXDATASIZE 1000int main(int argc,char *argv[]){ char buf[MAXDATASIZE]; int sockfd; int numbytes; struct sockaddr_in t原创 2004-11-10 15:00:00 · 1075 阅读 · 0 评论 -
A simply server code with c.
#include #include #include #include #include /*#include *//*#include *//*#include */#define MYPORT 3490#define BACKLOG 10 /*how many pending connections queue will hold*/main(void ){ int sockf原创 2004-11-10 14:58:00 · 1389 阅读 · 0 评论 -
The stream of send() and recev().
1)When i use send() and recev() to manipulate stream, if i send “hello”, and i can got the string which length is 7.2)The sniffer monitor the network, and i use “putty” to telnet a unix server, and wh原创 2004-11-16 19:20:00 · 883 阅读 · 0 评论