基于TCP-服务器1、创建一个socket,2、绑定IP地址、端口等信息到socket上,用函数bind()3、设置允许的最大连接数,用函数listen()。4、等待来自客户端的连接请求,用accept()5、收发数据,用函数send()和recv(),或者read()和write()6、关闭网络连...
分类:
系统相关 时间:
2014-07-18 16:11:39
阅读次数:
274
Java语言的关键字有:(所有的关键字都是小写)abstract、boolean、break、byte、case、catch、char、class、continue、default、do、double、else、extends、false、final、finally、float、for、if、imp...
分类:
编程语言 时间:
2014-07-18 16:08:14
阅读次数:
235
Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers b...
分类:
其他好文 时间:
2014-07-18 15:17:26
阅读次数:
201
alias ll='ls -alF'一:ls -a --all : do not ignore entries starting with . -A , --almost-all : do not list implied . and .. -l : use a long listing f...
分类:
系统相关 时间:
2014-07-18 10:36:44
阅读次数:
314
A. RewardsBizon the Champion is called the Champion for a reason.Bizon the Champion has recently got a present — a new glass cupboard with n shelves a...
分类:
其他好文 时间:
2014-07-18 10:17:51
阅读次数:
254
官网:http://luvit.io/Luvit is an attempt to do something crazy by taking node.js' awesome architecture and dependencies and seeing how it fits in the Lu...
分类:
其他好文 时间:
2014-07-18 10:03:40
阅读次数:
317
Set Matrix ZeroesGiven amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.Follow up:Did you use extra space?A straight...
分类:
其他好文 时间:
2014-07-17 23:34:02
阅读次数:
486
#define EV_TIMER_RESOLUTION 1 /* 1 msec */#define EV_READ_EVENT EPOLLIN#define EV_WRITE_EVENT EPOLLOUTstruct ev_event;struct ev_timer;typedef void ...
分类:
其他好文 时间:
2014-07-17 22:37:16
阅读次数:
276
??
Building for UN
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 1367
Accepted: 599
Special Judge
Description
The United Nations has decided to buil...
分类:
其他好文 时间:
2014-07-17 20:37:19
阅读次数:
294
??
Description
Petya has k matches, placed in n matchboxes lying in a line from left to right.
We know that k is divisible by n. Petya wants all boxes to have the same number of matches in...
分类:
其他好文 时间:
2014-07-17 20:35:53
阅读次数:
249