A Discrete-Event Network Simulator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
INetStreamSocket Struct Referenceabstract

Public Member Functions

virtual int accept (INetStreamSocket **)=0
virtual void connect (const char *, int)=0
virtual void disconnect ()=0
virtual bool get_var (const char *var, char *result, int result_len)
virtual int getpeername (struct sockaddr *sa, size_t *salen)
virtual int getsockname (struct sockaddr *sa, size_t *salen)
virtual bool is_connected ()=0
virtual bool is_listening ()=0
virtual void listen (int)=0
virtual void print_state (FILE *)=0
virtual int read_data (void *buf, int *buflen)=0
virtual int send_data (const void *data, int datalen)=0
virtual bool set_var (const char *var, const char *val)
virtual int setsockopt (char *optname, void *val, size_t valsize)=0

Detailed Description

Definition at line 136 of file sim_interface.h.

The documentation for this struct was generated from the following file: