.
D 2000-10-26T01:09:34
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s4000\sRFE\nVersion:\s8.0.5\nSubmitDate:\s'2000-01-10'\nLastModified:\s'2000-01-10'\nSeverity:\sLOW\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sWindows\s95\nFixedDate:\s'2000-01-10'\nFixedInVersion:\s8.2\nClosedDate:\s'2000-10-25'\n\n\nName:\nKerem\sHADIMLI\n\nExtensions:\nPure\sTcl\s8.0.5\swith\sno\sextensions\n\nDesiredBehavior:\nAny\sway\sto\screate\ssockets\sthat\sare\slike\s-async\sswitch\s(socket\screation/connection\sdoesn't\sblock),\sbut\sunderstand\swhether\sif\sthe\ssocket\scan\sconnect\sor\snot?\nBecause\sI\shave\sto\suse\sblocking-while-connecting\ssockets\s(which\sare\sBAD),\sto\sunderstand\sif\sthe\ssocket\scan\sconnect\sor\snot.\n\nthanks,\nKerem\s'Waster_'\sHADIMLI\n\n\n\nNote\sfrom\sthe\snewsgroup:\n\nIt\sIS\spossible\sto\scheck\sthe\sconnection\sstatus\sof\san\sasynchronous\nsocket:\n\n\s\s\s\s\sset\ssock\s[socket\s-async\s$host\s$port]\n\s\s\s\s\sfileevent\s$sock\sreadable\s"getConnectState\s$sock"\n\s\s\s\s\sfileevent\s$sock\swritable\s"getConnectState\s$sock"\n\n\s\s\s\s\sproc\sgetConnectState\s{sock}\s{\n\s\s\s\s\s\s\s\s\sfileevent\s$sock\sreadable\s""\n\s\s\s\s\s\s\s\s\sfileevent\s$sock\swritable\s""\n\n\s\s\s\s\s\s\s\s\sset\sconnectState\s[fconfigure\s$sock\s-error]\n\s\s\s\s\s\s\s\s\sif\s{[string\scompare\s$connectState\s""]\s==\s0}\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\sputs\s"connected\sto\sserver"\n\s\s\s\s\s\s\s\s\s}\selse\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\sclose\s$sock\n\s\s\s\s\s\s\s\s\s\s\s\s\sputs\s"connection\sfailed"\n\s\s\s\s\s\s\s\s\s}\n\s\s\s\s\s}\n\nThis\ssolution\sworks\swell\son\sUNIX.\s\sOn\sWindows\sit\sworks\swith\sTcl\s8.2\sor\nhigher,\sbecause\sthe\sfileevent\scommand\swas\snot\simplemented\sproperly\sin\nearlier\sversions\sof\sTcl\sunder\sWindows.\s\sYou\sshould\supgrade\sto\sTcl\s8.2.3\n(or\s8.3b1).\n\n--\nCsaba\sNemethi\s\s\shttp://www.nemethi.de\s\s\smailto:[email protected]\n\s\n--\s01/10/2000\shobbs
J foundin final:\s8.0.5
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 63.\s(unused)
J title Need\snonblocking-while-creating\ssockets
J type Bug
K 219023ffffffffffffffffffffffffffffffffff
U nobody
Z 457cc4848c69b07c19d2fb25b9f8c073