Moin moin, Randy,

Randy Macleod wrote:
 > It's late and I don't understand what you are trying to do here:
 >         char c;    // TODO: Better way?
 >         result = recv(    this->socketDescriptor_,
 >                 &c,        // We need no space for data
 >                 1,        // We read no data
 >                 0);        // Delete data from TIPC
 >
 > It looks like you are sending more than 1 byte...
 >
 > Explain to the list if I'm not just being stoopid. ;-)

My receive()-methode does not delete the data from the TIPC (flag
MSG_PEEK is set). So on this place I read the packet again without the
MSG_PEEK-flag to remove it from the TIPC. Perhaps there is a better way
to remove data from the TIPC.
My aim was to split up the reading and removing of data, like it is in
the stl-containers.

 > Also it might be interesting to split the send and recv code into different
 > processes to be sure that there are no threading issues.

I try to have a closer look into that direction.

cu
  Martin



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
tipc-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tipc-discussion

Reply via email to