标题: 关于clientsend指令的请教 [打印本页] 作者: missman 时间: 2013-2-23 10:22 标题: 关于clientsend指令的请教 库函数命令中有此命令,说明如下: * N* ?- S8 m# h r) P/ |0 m; x clientsend(num socket,str message)1 b+ M+ Z. L) B% I1 T, ]3 |0 R0 D
说明:此命令将信息从一个端口传递到指定的端口。, N9 P( j: e* |5 q* L# o5 A
# |# u7 h1 g% Y7 t7 E; x8 z2 K查了帮助的命令集,描述如下: 5 q: s& f( | z& j* P' k2 w clientsend(num socket, str message[, num charlength]) 4 E- P1 C$ Y! u) O Description:! K5 M. C% L! d7 E4 a
This command sends a message across the socket specified as socket. The value passed as socket is the number returned by clientcreate(). The charlength is the length of the string being passed and is usually optional. Needed only if the string being sent has NULL characters in it. % D& w& j& U+ Q/ N4 T. K Example: - e- W5 V* u2 z c3 w$ B( i
clientsend(1,"REQ:service");/ j( Z: N7 A' Z3 h- R3 e' n' N# r