浏览代码

cmUdpNet.h: Comment updates.

master
kevin 11 年前
父节点
当前提交
f8e504cbfc
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6
    2
      cmUdpNet.h

+ 6
- 2
cmUdpNet.h 查看文件

55
 cmUnRC_t cmUdpNetFree( cmUdpNetH_t* hp );  
55
 cmUnRC_t cmUdpNetFree( cmUdpNetH_t* hp );  
56
 
56
 
57
 // Initialize a UDP net using a previously allocated handle
57
 // Initialize a UDP net using a previously allocated handle
58
+// The node information (nodeLabel,nodeId,nodeSocketPort) refers
59
+// to the local node. The callback information (cbFunc,cbArg)
60
+// are used during cmUdpNetReceive() to receive incoming
61
+// information from the local node.
58
 cmUnRC_t cmUdpNetInit(
62
 cmUnRC_t cmUdpNetInit(
59
   cmUdpNetH_t         h,
63
   cmUdpNetH_t         h,
60
   const cmChar_t*     nodeLabel,
64
   const cmChar_t*     nodeLabel,
118
 cmUnRC_t cmUdpNetSendByLabel( cmUdpNetH_t h, const cmChar_t* remoteNodeLabel, const void* data, unsigned dataByteCnt );
122
 cmUnRC_t cmUdpNetSendByLabel( cmUdpNetH_t h, const cmChar_t* remoteNodeLabel, const void* data, unsigned dataByteCnt );
119
 
123
 
120
 // Transmit any waiting incoming messages to the client via the
124
 // Transmit any waiting incoming messages to the client via the
121
-// cmUdpNetCallback_t callback function provided in the UDP
122
-// network's initialization function.
125
+// cmUdpNetCallback_t callback function provided
126
+// cmUdpNetInit().
123
 // On input *msgCntPtr should hold the max. number of 
127
 // On input *msgCntPtr should hold the max. number of 
124
 // messages to receive or NULL to receive all available.
128
 // messages to receive or NULL to receive all available.
125
 // On return *msgCntPtr is set to the actual number of
129
 // On return *msgCntPtr is set to the actual number of

正在加载...
取消
保存