[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question about SocketPort, SocketService and so on
From: |
Andrey Kulikov |
Subject: |
Re: question about SocketPort, SocketService and so on |
Date: |
Wed, 4 Feb 2004 22:03:42 +0300 |
Hello Eugeny,
END> I need to do something like this - listen for incoming
END> connections at specified port, then when connection comes, take the
END> first 8 bytes of the packet, extract the packet length from it and
END> read the packet's tail. I tried to alter the existing example
END> "tcpservice", but seems that the method pending() of SocketPort class is
END> called from the SocketSerivice asynchronous. But i don't need such
END> functionality, because it makes mu job a bit complicated. Is there a way
END> where i can call the receive() method in "blocking" mode, so i can read
END> the 80 bytes, then calculate the length and then read the data from
END> socket unless 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.
--
Best regards,
Andrey mailto:address@hidden