In my experience its best to use non-blocking sockets.. 

It's can be a bit of a pain depending on the situation, but with some
careful "wait until x unless received y bytes" type loops you can cater
for pretty much any scenario.. In the scenarios where I have control
over both sides of the connection, the "messages" typically have a fixed
format where the first x bytes is the number of bytes for the rest of
the message, which enables much cleaner code to process any incoming
data...

It's not that difficult, but a little bit of planning will go a very
long way...

Best of luck...

Ray

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of doug chanco
Sent: 09 April 2009 17:56
To: [email protected]
Subject: [U2] universe sockets

I am about to do some socket programming with the universe socket API 
(universe 10.2.x and aix 5.3.x), are there any
gotchas/advice/suggestions anyone would care to share?

thanks!

dougc
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to