ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dce-socket.h File Reference
#include <stdint.h>
#include <sys/socket.h>
+ Include dependency graph for dce-socket.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int dce_accept (int sockfd, struct sockaddr *addr, socklen_t *addrlen)
int dce_bind (int fd, const struct sockaddr *my_addr, socklen_t addrlen)
int dce_connect (int fd, const struct sockaddr *my_addr, socklen_t addrlen)
int dce_getpeername (int s, struct sockaddr *name, socklen_t *namelen)
int dce_getsockname (int s, struct sockaddr *name, socklen_t *namelen)
int dce_getsockopt (int s, int level, int optname, void *optval, socklen_t *optlen)
int dce_listen (int sockfd, int backlog)
ssize_t dce_recv (int fd, void *buf, size_t count, int flags)
ssize_t dce_recvfrom (int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen)
ssize_t dce_recvmsg (int s, struct msghdr *msg, int flags)
ssize_t dce_send (int s, const void *buf, size_t len, int flags)
ssize_t dce_sendmsg (int s, const struct msghdr *msg, int flags)
ssize_t dce_sendto (int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen)
int dce_setsockopt (int s, int level, int optname, const void *optval, socklen_t optlen)
int dce_shutdown (int s, int how)
int dce_socket (int domain, int type, int protocol)
int dce_socketpair (int domain, int type, int protocol, int sv[2])

Function Documentation

int dce_accept ( int  sockfd,
struct sockaddr *  addr,
socklen_t *  addrlen 
)

Definition at line 459 of file dce-fd.cc.

References ns3::Current(), OPENED_FD_METHOD, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

int dce_bind ( int  fd,
const struct sockaddr *  my_addr,
socklen_t  addrlen 
)

Definition at line 435 of file dce-fd.cc.

References ns3::Current(), OPENED_FD_METHOD, and ns3::UtilsGetNodeId().

Referenced by dce_getifaddrs().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int dce_connect ( int  fd,
const struct sockaddr *  my_addr,
socklen_t  addrlen 
)

Definition at line 443 of file dce-fd.cc.

References ns3::Current(), OPENED_FD_METHOD, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

int dce_getpeername ( int  s,
struct sockaddr *  name,
socklen_t *  namelen 
)

Definition at line 546 of file dce-fd.cc.

References ns3::Current(), OPENED_FD_METHOD, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

int dce_getsockname ( int  s,
struct sockaddr *  name,
socklen_t *  namelen 
)

Definition at line 538 of file dce-fd.cc.

References ns3::Current(), OPENED_FD_METHOD, and ns3::UtilsGetNodeId().

Referenced by dce_getifaddrs().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int dce_getsockopt ( int  s,
int  level,
int  optname,
void *  optval,
socklen_t *  optlen 
)

Definition at line 529 of file dce-fd.cc.

References ns3::Current(), OPENED_FD_METHOD, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

int dce_listen ( int  sockfd,
int  backlog 
)

Definition at line 451 of file dce-fd.cc.

References ns3::Current(), OPENED_FD_METHOD, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

ssize_t dce_recv ( int  fd,
void *  buf,
size_t  count,
int  flags 
)

Definition at line 475 of file dce-fd.cc.

References dce_recvfrom().

+ Here is the call graph for this function:

ssize_t dce_recvfrom ( int  s,
void *  buf,
size_t  len,
int  flags,
struct sockaddr *  from,
socklen_t *  fromlen 
)

Definition at line 480 of file dce-fd.cc.

References ns3::Current(), dce_recvmsg(), ns3::Thread::err, and SOCK_MAX_ADDRESS_SIZE.

Referenced by dce_recv().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ssize_t dce_recvmsg ( int  s,
struct msghdr *  msg,
int  flags 
)

Definition at line 512 of file dce-fd.cc.

References ns3::Current(), OPENED_FD_METHOD, and ns3::UtilsGetNodeId().

Referenced by dce_recvfrom(), and netlink_request().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ssize_t dce_send ( int  s,
const void *  buf,
size_t  len,
int  flags 
)

Definition at line 242 of file dce-fd.cc.

References dce_sendto().

+ Here is the call graph for this function:

ssize_t dce_sendmsg ( int  s,
const struct msghdr *  msg,
int  flags 
)

Definition at line 266 of file dce-fd.cc.

References ns3::Current(), OPENED_FD_METHOD, and ns3::UtilsGetNodeId().

Referenced by dce_sendto().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ssize_t dce_sendto ( int  s,
const void *  buf,
size_t  len,
int  flags,
const struct sockaddr *  to,
socklen_t  tolen 
)

Definition at line 247 of file dce-fd.cc.

References ns3::Current(), and dce_sendmsg().

Referenced by dce_send(), and netlink_request().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int dce_setsockopt ( int  s,
int  level,
int  optname,
const void *  optval,
socklen_t  optlen 
)

Definition at line 520 of file dce-fd.cc.

References ns3::Current(), OPENED_FD_METHOD, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

int dce_shutdown ( int  s,
int  how 
)

Definition at line 467 of file dce-fd.cc.

References ns3::Current(), OPENED_FD_METHOD, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

int dce_socket ( int  domain,
int  type,
int  protocol 
)

Definition at line 344 of file dce-fd.cc.

References ns3::Current(), ns3::Thread::err, ns3::UnixFd::IncFdCount(), ns3::Process::manager, ns3::Process::openFiles, ns3::Thread::process, ns3::UtilsAllocateFd(), and ns3::UtilsGetNodeId().

Referenced by dce_getifaddrs(), dce_if_indextoname(), dce_if_nametoindex(), and dce_socketpair().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int dce_socketpair ( int  domain,
int  type,
int  protocol,
int  sv[2] 
)

Definition at line 418 of file dce-fd.cc.

References dce_socket().

+ Here is the call graph for this function: