About Us

People

Research

Publications

Funding

Download




SMesh

Spines

Spread

Secure Spread




























Home Documentation License Download Mailing List Credits


NAME
       spines_bind - bind a name to a Spines socket

SYNOPSIS
       #include "spines_lib.h"
  
       int spines_bind(int sockfd, struct sockaddr *my_addr, 
                       socklen_t addrlen);

DESCRIPTION
       spines_bind gives the socket sockfd the local address
       my_addr. my_addr is addrlen bytes long. When a Spines socket is
       created with spines_socket, it has a virtual port automatically
       assigned by the Spines daemon. This virtual port can be changed
       through the spines_bind call.

       It is normally necessary to assign a local address using
       spines_bind before a SOCK_STREAM socket may receive connections
       (see spines_accept).

RETURN VALUE
       On  success, zero is returned.  On error, -1 is returned.





Questions or comments to:
webmaster_at_spines.org
TEL: (410) 516-5562
FAX: (410) 516-6134
Distributed Systems and Networks Lab
Computer Science Department
Johns Hopkins University
3400 N. Charles Street Baltimore, MD 21218-2686