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: David Sugar
Subject: Re: question about SocketPort, SocketService and so on
Date: Tue, 10 Feb 2004 09:25:04 -0500
User-agent: KMail/1.5.3

It could be helpful to look at this and see how SocketPort/SocketService can 
be improved.

On Wednesday 04 February 2004 02:42 pm, Eugeny N Dzhurinsky wrote:
> 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 ;)
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp





reply via email to

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