ÃÑ ÆäÀÌÁö ¼ö : 3224
![]()
|
Facebook Joinc ±×·ì
Joinc QA »çÀÌÆ®
![]()
Tweet
joinc´Â Firefox¿Í chrome¿¡¼ Å×½ºÆ® Çß½À´Ï´Ù. IE¿¡¼´Â Å×À̺íÀÌ ±úÁö°Å³ª À̹ÌÁö°¡ º¸ÀÌÁö ¾ÊÀ» ¼ö ÀÖ½À´Ï´Ù. ƯÈ÷ ±¸±Û DocsÀ̹ÌÁöÀÇ °æ¿ì ¿¢¹Úó¸®µÉ ¼ö ÀÖ½À´Ï´Ù.
o connect returns -1/EINPROGRESS. The connection attempt has begun,
but not yet completed.
If the connection succeeds:o the socket will select() as writable (and will also select as
readable if data arrives)
If the connection fails:o the socket will select as readable *and* writable, but either a
read or write will return the error code from the connection
Sample code that illustrates this can be found in the socket-faqattempt. Also, you can use getsockopt(SO_ERROR) to get the error status - but be careful; some systems return the error code in the result parameter of getsockopt(), but others (incorrectly) cause the getsockopt call itself to fail with the stored value as the error. examples, in the file connect.c. If you don't have web access, you can ftp it with ftpmail by following the following instructions. Please do not use the ftp server if you have access to the web, since computain.com is connected only by a 28.8 modem, and you'd be amazed how much traffic this faq generates. To get the sample source by mail, send mail to ftpmail@decwrl.dec.com, with no subject line and a body like this:
reply <put your email address here>
Save the reply as examples.uu, and type:connect ftp.computain.com binary uuencode get pub/sockets/examples.tar.gz quit
% uudecode examples.uu
This will create a directory called socket-faq-examples which contains% gunzip examples.tar.gz % tar xf examples.tar the sample code from this faq, plus a sample client and server for both tcp and udp. Note that this package requires the gnu unzip program to be installed on your system. It is very common, but if you don't have it you can get the source for it from: If you don't have ftp access, you can obtain it in a way similar to obtaining the sample source. I'll leave the exact changes to the body of the message as an excersise for the reader. |
|
|
EmailÀ» ±âÀÔÇϸé, ´ñ±ÛÀÌ ¸ÞÀÏ·Î Àü´ÞµË´Ï´Ù. |
|