HELP:how to disconnect a SOCK_DGRAM socket?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > HELP:how to disconnect a SOCK_DGRAM socket?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    HELP:how to disconnect a SOCK_DGRAM socket?  
studyos


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-26-07 12:19 PM

which API is designed for this target or no one exists?

Thanks in advanced






[ Post a follow-up to this message ]



    Re: HELP:how to disconnect a SOCK_DGRAM socket?  
David Schwartz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-27-07 12:20 AM

On Jul 26, 1:07 am, studyos <franking...@gmail.com> wrote:

> which API is designed for this target or no one exists?

What do you mean by "disconnect"?

DS






[ Post a follow-up to this message ]



    Re: HELP:how to disconnect a SOCK_DGRAM socket?  
Bin Chen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-27-07 06:19 AM

On Jul 26, 4:07 pm, studyos <franking...@gmail.com> wrote:
> which API is designed for this target or no one exists?
>
> Thanks in advanced

Datagram socket doesn't has a concept of disconnect. It is session
less.






[ Post a follow-up to this message ]



    Re: HELP:how to disconnect a SOCK_DGRAM socket?  
Bit Banger


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-27-07 06:19 AM

studyos <frankinglin@gmail.com> wrote:

>which API is designed for this target or no one exists?
>
>Thanks in advanced
>

Depends which OS you are using.

Linux:

From man 2 connect...
Connectionless sockets may dissolve the association by connecting to
an address with the sa_family member of sockaddr set to AF_UNSPEC.

Solaris:

From man 3 connect...
Datagram sockets can dissolve the association by connecting to a null
address.

Other flavors may vary.





[ Post a follow-up to this message ]



    Re: HELP:how to disconnect a SOCK_DGRAM socket?  
Rainer Weikusat


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-27-07 12:18 PM

hatespam@hatespam.com (Bit Banger) writes:
> studyos <frankinglin@gmail.com> wrote: 
>
> Depends which OS you are using.
>
> Linux:
>
> From man 2 connect...
> Connectionless sockets may dissolve the association by connecting to
> an address with the sa_family member of sockaddr set to AF_UNSPEC.

[...]

BUGS
Unconnecting a socket by calling connect() with a AF_UNSPEC
address is not yet implemented.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:15 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register