bug-commoncpp
[Top][All Lists]
Advanced

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

Re: question about SocketPort, SocketService and so on


From: Eugeny N Dzhurinsky
Subject: Re: question about SocketPort, SocketService and so on
Date: Wed, 4 Feb 2004 21:42:57 +0200

On Wed, 4 Feb 2004 22:03:42 +0300 Andrey Kulikov <address@hidden>
wrote:

> Hello Eugeny,
> 
> END> I need to do something like this - listen for incoming
> END> connections at specified port, then when connection comes, take
> END> the first 8 bytes of the packet, extract the packet length from
> END> it and read the packet's tail. I tried to alter the existing
> END> example"tcpservice", but seems that the method pending() of
> END> SocketPort class is called from the SocketSerivice asynchronous.
> END> But i don't need such functionality, because it makes mu job a
> END> bit complicated. Is there a way where i can call the receive()
> END> method in "blocking" mode, so i can read the 80 bytes, then
> END> calculate the length and then read the data from socket unless
> END> all the packet read?
> 
> Some times ago i have the same problem.
> And i have solve this by the writing a superstructure under the
> TCPSocket class. It's work, but implementation looks terrible.
> I can sent to you source codes. May be you can form that in useful
> manner.

Well, seems that if ound a way with altering the TCPSocket and
TCPSession classes, but sure, i would like to see your sources, if
possible ;)




reply via email to

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