bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

question about SocketPort, SocketService and so on


From: Eugeny N Dzhurinsky
Subject: question about SocketPort, SocketService and so on
Date: Wed, 4 Feb 2004 20:44:59 +0200

<Disclaimer>
May be i failed with the mailing list, but i didn't found another
one at gnu.org.
</Disclaimer>

Hello!
Have a question regarding the applying the SocketPort and SocketService
to my project. 

I need to do something like this - listen for incoming
connections at specified port, then when connection comes, take the
first 8 bytes of the packet, extract the packet length from it and
read the packet's tail. I tried to alter the existing example
"tcpservice", but seems that the method pending() of SocketPort class is
called from the SocketSerivice asynchronous. But i don't need such
functionality, because it makes mu job a bit complicated. Is there a way
where i can call the receive() method in "blocking" mode, so i can read
the 80 bytes, then calculate the length and then read the data from
socket unless all the packet read?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]