|
virtual TypeHandle | force_init_type () |
|
virtual TypeHandle | get_type () const |
|
bool | InitToAddress (const Socket_Address &address) |
| Connects the socket to a Specified address.
|
|
bool | Send (const char *data, int len) |
| Send data to connected address.
|
|
bool | Send (const std::string &data) |
| Send data to connected address.
|
|
bool | SendTo (const char *data, int len, const Socket_Address &address) |
| Send data to specified address.
|
|
bool | SendTo (const std::string &data, const Socket_Address &address) |
| Send data to specified address.
|
|
bool | SetToBroadCast () |
| Ask the OS to let us receive broadcast packets on this port.
|
|
bool | GetPacket (char *data, int *max_len, Socket_Address &address) |
| Grabs a dataset off the listening UDP socket and fills in the source address information.
|
|
bool | InitNoAddress () |
| Set this socket to work without a bound external address.
|
|
bool | OpenForInput (const Socket_Address &address) |
| Starts a UDP socket listening on a port.
|
|
bool | OpenForInput (unsigned short port) |
| Starts a UDP socket listening on a port.
|
|
bool | OpenForInputMCast (const Socket_Address &address) |
| Starts a UDP socket listening on a port.
|
|
bool | SendTo (const char *data, int len, const Socket_Address &address) |
| Send data to specified address.
|
|
bool | SetToBroadCast () |
| Flips the OS bits that allow for brodcast packets to come in on this port.
|
|
| Socket_IP () |
| Def Constructor.
|
|
| Socket_IP (SOCKET in) |
| Assigns an existing socket to this class.
|
|
virtual | ~Socket_IP () |
| Destructor.
|
|
bool | Active () |
| Ask if the socket is open (allocated)
|
|
void | Close () |
| Closes a socket if it is open (allocated).
|
|
Socket_Address | GetPeerName (void) const |
| Wrapper on berkly getpeername...
|
|
SOCKET | GetSocket () |
| Gets the base socket type.
|
|
SOCKET | GetSocket () const |
| Get The RAW file id of the socket.
|
|
int | SetBlocking () |
| Set the socket to block on subsequent calls to socket functions that address this socket.
|
|
int | SetNonBlocking () |
| this function will throw a socket into non-blocking mode
|
|
int | SetRecvBufferSize (int size) |
| Ok it sets the recv buffer size for both tcp and UDP.
|
|
bool | SetReuseAddress (bool flag=true) |
| Informs a socket to reuse IP address as needed.
|
|
void | SetSocket (SOCKET ins) |
| Assigns an existing socket to this class.
|
|
bool | SetV6Only (bool flag) |
| Sets a flag indicating whether this IPv6 socket should operate in dual-stack mode or not.
|
|
| TypedObject (const TypedObject ©)=default |
|
TypedObject * | as_typed_object () |
| Returns the object, upcast (if necessary) to a TypedObject pointer.
|
|
const TypedObject * | as_typed_object () const |
| Returns the object, upcast (if necessary) to a TypedObject pointer.
|
|
int | get_best_parent_from_Set (const std::set< int > &) const |
|
int | get_type_index () const |
| Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.
|
|
bool | is_exact_type (TypeHandle handle) const |
| Returns true if the current object is the indicated type exactly.
|
|
bool | is_of_type (TypeHandle handle) const |
| Returns true if the current object is or derives from the indicated type.
|
|
TypedObject & | operator= (const TypedObject ©)=default |
|
void | operator delete (void *, void *) |
|
void | operator delete (void *ptr) |
|
void | operator delete[] (void *, void *) |
|
void | operator delete[] (void *ptr) |
|
void * | operator new (size_t size) |
|
void * | operator new (size_t size, void *ptr) |
|
void * | operator new[] (size_t size) |
|
void * | operator new[] (size_t size, void *ptr) |
|
Base functionality for a combination UDP Reader and Writer.
This duplicates code from Socket_UDP_Outgoing, to avoid the problems of multiple inheritance.
Definition at line 24 of file socket_udp.h.