zenilib: Zeni::TCP_Listener Class Reference

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Member Functions | List of all members
Zeni::TCP_Listener Class Reference
Zenilib

A Socket for accepting new TCP connections (in the form of TCP_Sockets) More...

`#include <Net.h>`

## Public Member Functions

| TCP_Listener (const Uint16 &port)
| ~TCP_Listener ()
TCPsocket | accept ()
| Returns 0 if no listener. More...

## Detailed Description

A Socket for accepting new TCP connections (in the form of TCP_Sockets)

Not much more to it.

Author
  bazald

Contact: bazal.nosp@m.d@ze.nosp@m.nipex.nosp@m..com

Definition at line 202 of file Net.h.

## Constructor & Destructor Documentation

Zeni::TCP_Listener::TCP_Listener | ( | const Uint16 & | port | ) |

Definition at line 232 of file Net.cpp.

References Zeni::get_Net(), Zeni::Singleton< TYPE >::lend_pre_uninit(), IPaddress::port, SDLNet_TCP_Open(), and SDLNet_Write16.

Zeni::TCP_Listener::~TCP_Listener | ( |  | ) |

Definition at line 255 of file Net.cpp.

References Zeni::get_Net(), Zeni::Singleton< TYPE >::remove_pre_uninit(), and SDLNet_TCP_Close().

## Member Function Documentation

TCPsocket Zeni::TCP_Listener::accept | ( |  | ) |

Returns 0 if no listener.

Definition at line 270 of file Net.cpp.

References SDLNet_TCP_Accept().

The documentation for this class was generated from the following files:

- zenilib/jni/external/zenilib/zeni_net/Zeni/Net.h
- zenilib/jni/external/zenilib/zeni_net/Net.cpp