Sha256: 523c15824def2396ae926f24e85d232063457ad50438dd40f1ba15bfebf80996
Contents?: true
Size: 379 Bytes
Versions: 3
Compression:
Stored size: 379 Bytes
Contents
#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <errno.h> #include "socket.h" #include "byte.h" int socket_bind(int fd,const unsigned char *ip,const unsigned char *port) { struct sockaddr_in sa; byte_zero(&sa,sizeof sa); byte_copy(&sa.sin_addr,4,ip); byte_copy(&sa.sin_port,2,port); return bind(fd,(struct sockaddr *) &sa,sizeof sa); }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby_nacl-0.1.2 | ext/ruby_nacl/NaCl/curvecp/socket_bind.c |
ruby_nacl-0.1.1 | ext/ruby_nacl/NaCl/curvecp/socket_bind.c |
ruby_nacl-0.1.0 | ext/ruby_nacl/NaCl/curvecp/socket_bind.c |