Overview
Features
Download
Documentation
Community
Add-Ons & Services

setting socket options before connection?

Please post support and help requests here.

setting socket options before connection?

Postby jimfr » 02 Apr 2009, 19:44

Some socket options should be set before a socket is connected. If I try to set a socket option such as setSendBufferSize()on a StreamSocket before connection, the socket handle in the object is -1, so setSendBufferSize asserts. Is there another way to accomplish this?

Jim
jimfr
 
Posts: 8
Joined: 05 Mar 2009, 01:58

Re: setting socket options before connection?

Postby guenter » 03 Apr 2009, 16:03

Setting socket options on an unconnected socket is currently not supported, but will be in 1.3.4.
guenter
 
Posts: 1091
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: setting socket options before connection?

Postby jimfr » 04 Apr 2009, 00:53

Good news you are adding that to the next version. I believe setting TCP buffer sizes after the connection only works if the buffer size is increased, and I don't know if that applies to all OSs. Finding the answer to that for various OSs has been very difficult.
jimfr
 
Posts: 8
Joined: 05 Mar 2009, 01:58


Return to Support

Who is online

Users browsing this forum: Baidu [Spider] and 3 guests

cron