Click here to Skip to main content
15,898,134 members

Comments by Vishal Kumar Soni (Top 5 by date)

Vishal Kumar Soni 6-Jan-11 0:18am View    
Thanks pasztorpisti!

Regards,
Vishal
Vishal Kumar Soni 4-Dec-10 2:06am View    
Thanks very much pasztorpisti for such a detail reply but if I dont call SetSocketBlocking before connect than by default it will be blocking or non blocking like in following code:
socket = socket( family, sockType, protoType );
if( m_socket == INVALID_SOCKET )
{

throw exception;
}


address.sin_family = family;
address.sin_port = port;
address.sin_addr.s_addr = address;


if( sockType == SOCK_STREAM || SOCK_DGRAM == sockType && IPPROTO_UDP == protoType )
{
// Establishes a connection to a specified socket.
if( connect( m_socket,m_address, sizeof( m_address ) ) == SOCKET_ERROR )
{
throw exception;
}
}
Vishal Kumar Soni 4-Dec-10 2:01am View    
Thanks Cpallini
Vishal Kumar Soni 3-Dec-10 15:13pm View    
Thanks Pasztorpisti.
Vishal Kumar Soni 3-Dec-10 11:34am View    
Hi John,

Thanks for your reply.

You are right that it is poorly written code but I can not provide patch now as it on live system.All system get blocked due to this.

So that's why, for time I want to write process which can kill this dialog box and restart the parent process.

Please give some idea.

Thanks
Vishal