s****n 发帖数: 700 | 1 是直接用系统带的C API还是其他的什么。
不知道有什么比较好用的么 |
b*******s 发帖数: 5216 | 2 #include "pthread.h"
gcc -lpthread |
X****r 发帖数: 3557 | 3 I don't see how pthread relates to sockets.
【在 b*******s 的大作中提到】 : #include "pthread.h" : gcc -lpthread
|
X****r 发帖数: 3557 | 4 I don't see how pthread relates to sockets.
【在 b*******s 的大作中提到】 : #include "pthread.h" : gcc -lpthread
|
h****e 发帖数: 2125 | 5
if u do OOP u might want to use a C++ socket lib. I have used many socket
libraries and even written one of my own. it really depends upon what u
want to do: if u just do simple send/receive any lib would suffice, POCO
for example is really simple to use and has implemented many useful
applications like multithreaded TCP server. if u want an even-driven
distributed system u need to use ACE. if u need cross-platform u might
want to use boost::asio. if u want serialization/deserialization u can try
Google protobuf, if u want reliable multicast u could use Enet...
【在 s****n 的大作中提到】 : 是直接用系统带的C API还是其他的什么。 : 不知道有什么比较好用的么
|
N***m 发帖数: 4460 | 6 恩,也许LZ思维跳跃的太快。
今天突然想起一道问题,不知道有没有解。
我们称一个NxN矩阵M是好的,如果它满足如下条件:
每个submatrix S_{N/2-k,N/2+k}的行列式>=0。(不妨考虑N奇数情况)
Here notation S_{ij} means坐上角index(i,i)并且右下角index(j,j)的矩阵。
那么,给定一个N^2个distinct正数a_{ij},如何排列成一个好矩阵?
【在 X****r 的大作中提到】 : I don't see how pthread relates to sockets.
|
h****e 发帖数: 2125 | 7
his ID indicates why...
【在 X****r 的大作中提到】 : I don't see how pthread relates to sockets.
|