[omniORB] question about blocking socket mode in omniORB-4.1.1
Nikola Radovanovic
nikola.radovanovic at dmsgroup.rs
Tue Mar 3 14:07:24 GMT 2009
Hi,
we have a question regarding blocking/non-blocking socket mode in
omniORB-4.1.1:
in method giopActiveConnection* tcpAddress::Connect(unsigned long
deadline_secs, unsigned long deadline_nanosecs, CORBA::ULong
strand_flags) const (in tcpAddress.cc:299);
after connection is successfully established, connected socket is set to
blocking mode by following piece of code:
if (SocketSetblocking(sock) == RC_INVALID_SOCKET) {
CLOSESOCKET(sock);
return 0;
}
Why is this done when select() is used in
int tcpConnection::Recv(void* buf, size_t sz, unsigned long
deadline_secs, unsigned long deadline_nanosecs) - in
tcpConnection.cc:283
int tcpConnection::Send(void* buf, size_t sz, unsigned long
deadline_secs, unsigned long deadline_nanosecs) - in
tcpConnection.cc:351
thanks for the replies
Telvent DMS
More information about the omniORB-list
mailing list