int eid = sp_endpoint (SP_REQREP, SP_REP); assert (sp_close (eid) == 0);
sp_close - close an endpoint
#include <xio/sp.h>
int sp_close (int eid);
Close the endpoint eid. so that it no longer refers to any endpoint and may be reused.
close() returns zero on success. On error, -1 is returned, and errno is set appropriately.
The provided socket is invalid.
int eid = sp_endpoint (SP_REQREP, SP_REP); assert (sp_close (eid) == 0);
Dong Fang <yp.fangdong@gmail.com> Martin Sustrik <sustrik@250bpm.com>