GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
CHDONE(3) libdill Library Functions CHDONE(3)

chdone - half-closes a channel


#include <libdill.h>
int chdone(
    int ch);

    

Closes an outbound half of the channel. When the peer receives all the messages sent prior to the calling chdone all its subsequent attempts to receive will fail with EPIPE error.

ch: The channel.

In case of success the function returns 0. In case of error it returns -1 and sets errno to one of the values below.

EBADF: Invalid handle.
ENOTSUP: The handle does not support this operation.
EPIPE: chdone was already called on this channel.


int ch[2];
chmake(ch);
chsend(ch, "ABC", 3, -1);
chdone(ch);

    

chmake(3) chmake_mem(3) choose(3) chrecv(3) chsend(3)
libdill

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.