C# Class SharpQuake.NetTcpIp

Inheritance: INetLanDriver
Show file Open project: Memorix101/SharpQuake

Public Methods

Method Description
AddrCompare ( EndPoint addr1, EndPoint addr2 ) : int
Broadcast ( Socket socket, byte buf, int len ) : int
CheckNewConnections ( ) : Socket
CloseSocket ( Socket socket ) : int
Connect ( Socket socket, EndPoint addr ) : int
GetAddrFromName ( string name ) : EndPoint
GetNameFromAddr ( EndPoint addr ) : string
GetSocketPort ( EndPoint addr ) : int
Init ( ) : bool

UDP_Init

Listen ( bool state ) : void

UDP_Listen

OpenSocket ( int port ) : Socket
Read ( Socket socket, byte buf, int len, EndPoint &ep ) : int
SetSocketPort ( EndPoint addr, int port ) : int
Shutdown ( ) : void
Write ( Socket socket, byte buf, int len, EndPoint ep ) : int

Private Methods

Method Description
NetTcpIp ( ) : System

Method Details

AddrCompare() public method

public AddrCompare ( EndPoint addr1, EndPoint addr2 ) : int
addr1 System.Net.EndPoint
addr2 System.Net.EndPoint
return int

Broadcast() public method

public Broadcast ( Socket socket, byte buf, int len ) : int
socket Socket
buf byte
len int
return int

CheckNewConnections() public method

public CheckNewConnections ( ) : Socket
return Socket

CloseSocket() public method

public CloseSocket ( Socket socket ) : int
socket Socket
return int

Connect() public method

public Connect ( Socket socket, EndPoint addr ) : int
socket Socket
addr System.Net.EndPoint
return int

GetAddrFromName() public method

public GetAddrFromName ( string name ) : EndPoint
name string
return System.Net.EndPoint

GetNameFromAddr() public method

public GetNameFromAddr ( EndPoint addr ) : string
addr System.Net.EndPoint
return string

GetSocketPort() public method

public GetSocketPort ( EndPoint addr ) : int
addr System.Net.EndPoint
return int

Init() public method

UDP_Init
public Init ( ) : bool
return bool

Listen() public method

UDP_Listen
public Listen ( bool state ) : void
state bool
return void

OpenSocket() public method

public OpenSocket ( int port ) : Socket
port int
return Socket

Read() public method

public Read ( Socket socket, byte buf, int len, EndPoint &ep ) : int
socket Socket
buf byte
len int
ep System.Net.EndPoint
return int

SetSocketPort() public method

public SetSocketPort ( EndPoint addr, int port ) : int
addr System.Net.EndPoint
port int
return int

Shutdown() public method

public Shutdown ( ) : void
return void

Write() public method

public Write ( Socket socket, byte buf, int len, EndPoint ep ) : int
socket Socket
buf byte
len int
ep System.Net.EndPoint
return int