NetLink Sockets C++  1.0.0
Networking C++ Library
 All Classes Namespaces Files Functions Enumerations Enumerator Pages
Classes | Enumerations | Functions
NL Namespace Reference

Classes

class  Exception
 
class  ReleaseManager
 
class  SmartBuffer
 
class  Socket
 
class  SocketGroupCmd
 
class  SocketGroup
 

Enumerations

enum  Protocol { TCP, UDP }
 
enum  IPVer { IP4, IP6, ANY }
 
enum  SocketType { CLIENT, SERVER }
 

Functions

void init ()
 
int iMax (int a, int b)
 
unsigned uMax (unsigned a, unsigned b)
 
unsigned long long getTime ()
 

Detailed Description

NetLink Sockets Namespace

Enumeration Type Documentation

enum NL::IPVer

Defines the version of IP.

Enumerator
IP4 

IP version 4

IP6 

IP version 6

ANY 

Any IP version

Defines protocol type.

Enumerator
TCP 

TCP Protocol

UDP 

UDP Protocol

Defines the nature of the socket.

Enumerator
CLIENT 

TCP or UDP socket connected or directed to a target host

SERVER 

TCP socket which listens for connections or UDP socket without target host

Function Documentation

void NL::init ( )

Library initialization function

Warning
Must be called before using the library
Examples:
chatClient.cc, chatServer.cc, clientEcho.cc, serverEcho.cc, udpDirectChat.cc, and webGet.cc.