C# Class NewTOAPIA.Net.Udt.CUDT

Show file Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Properties

Property Type Description
m_Linger System.Net.Sockets.LingerOption
m_PeerID UdtSocket
m_SocketID System.Int32
m_bClosing bool
m_bOpened bool
m_bRendezvous bool
m_bReuseAddr bool
m_bShutdown bool
m_bSynRecving bool
m_bSynSending bool
m_iBandwidth int
m_iBrokenCounter int
m_iDeliveryRate int
m_iEXPCount int
m_iFlightFlagSize int
m_iIPversion AddressFamily
m_iMSS int
m_iRTT int
m_iRTTVar int
m_iRcvBufSize int
m_iRcvTimeOut int
m_iSndBufSize int
m_iSndTimeOut int
m_iUDPRcvBufSize int
m_iUDPSndBufSize int
m_llMaxBW System.Int64

Public Methods

Method Description
CUDT ( CUDT ancestor ) : System
accept ( Int32 u, IPAddress addr, int &addrlen ) : Int32
bind ( Int32 u, IPAddress name, int namelen ) : int
bind ( Int32 u, Int32 udpsock ) : int
checkTimers ( ) : void
cleanup ( ) : int
close ( Int32 u ) : int
close ( ) : void
connect ( Int32 u, IPAddress name, int namelen ) : int
connect ( IPAddress peer, CHandShake hs ) : void
connect ( IPEndPoint serv_addr ) : void
destroySynch ( ) : void
getOpt ( UDTOpt optName, Object optval, int optlen ) : void
getUDTHandle ( Int32 u ) : CUDT
getlasterror ( ) : CUDTException
getpeername ( Int32 u, IPAddress name, int &namelen ) : int
getsockname ( Int32 u, IPAddress name, int &namelen ) : int
getsockopt ( Int32 u, int level, UDTOpt optname, Object optval, int &optlen ) : int
initSynch ( ) : void
listen ( IPAddress addr, CPacket &packet ) : int
listen ( Int32 u, int backlog ) : int
listen ( ) : void
open ( ) : void
perfmon ( Int32 u, CPerfMon perf ) : int
perfmon ( Int32 u, CPerfMon perf, bool clear ) : int
processCtrl ( CPacket ctrlpkt ) : void
recv ( Int32 u, byte buf, int len, int flags ) : int
recv ( byte data, int len ) : int
recvfile ( Int32 u, Stream ofs, System.Int64 offset, System.Int64 size ) : System.Int64
recvfile ( Int32 u, Stream ofs, System.Int64 offset, System.Int64 size, int block ) : System.Int64
recvfile ( Stream ofs, System.Int64 offset, System.Int64 size, int block ) : System.Int64
recvmsg ( Int32 u, byte buf, int len ) : int
recvmsg ( byte data, int len ) : int
releaseSynch ( ) : void
sample ( CPerfMon perf ) : void
sample ( CPerfMon perf, bool clear ) : void
select ( int nfds, fd_set readfds, fd_set writefds, fd_set exceptfds, timeval timeout ) : int
selectEx ( Int32 fds, Int32 readfds, Int32 writefds, Int32 exceptfds, System.Int64 msTimeOut ) : int
send ( Int32 u, byte buf, int len, int flags ) : int
send ( byte data, int len ) : int
sendCtrl ( int pkttype, IntPtr lparam, IntPtr rparam, int size ) : void
sendfile ( Int32 u, Stream ifs, System.Int64 offset, System.Int64 size ) : System.Int64
sendfile ( Int32 u, Stream ifs, System.Int64 offset, System.Int64 size, int block ) : System.Int64
sendfile ( Stream ifs, System.Int64 offset, System.Int64 size, int block ) : System.Int64
sendmsg ( Int32 u, byte buf, int len ) : int
sendmsg ( Int32 u, byte buf, int len, int ttl, bool inorder ) : int
sendmsg ( byte data, int len, int msttl, bool inorder ) : int
setOpt ( UDTOpt optName, Object optval, int optlen ) : void
setsockopt ( Int32 u, int level, UDTOpt optname, Object optval, int optlen ) : int
socket ( AddressFamily af, UDTSockType type, int protocol ) : Int32

startup ( ) : int

Private Methods

Method Description
CUDT ( ) : System
CUDTpackData ( CPacket packet, System.Int64 ts ) : int
processData ( CUnit unit ) : int

Method Details

CUDT() public method

public CUDT ( CUDT ancestor ) : System
ancestor CUDT
return System

accept() public static method

public static accept ( Int32 u, IPAddress addr, int &addrlen ) : Int32
u System.Int32
addr System.Net.IPAddress
addrlen int
return System.Int32

bind() public static method

public static bind ( Int32 u, IPAddress name, int namelen ) : int
u System.Int32
name System.Net.IPAddress
namelen int
return int

bind() public static method

public static bind ( Int32 u, Int32 udpsock ) : int
u System.Int32
udpsock System.Int32
return int

checkTimers() public method

public checkTimers ( ) : void
return void

cleanup() public static method

public static cleanup ( ) : int
return int

close() public static method

public static close ( Int32 u ) : int
u System.Int32
return int

close() public method

public close ( ) : void
return void

connect() public static method

public static connect ( Int32 u, IPAddress name, int namelen ) : int
u System.Int32
name System.Net.IPAddress
namelen int
return int

connect() public method

public connect ( IPAddress peer, CHandShake hs ) : void
peer System.Net.IPAddress
hs CHandShake
return void

connect() public method

public connect ( IPEndPoint serv_addr ) : void
serv_addr System.Net.IPEndPoint
return void

destroySynch() public method

public destroySynch ( ) : void
return void

getOpt() public method

public getOpt ( UDTOpt optName, Object optval, int optlen ) : void
optName UDTOpt
optval Object
optlen int
return void

getUDTHandle() public static method

public static getUDTHandle ( Int32 u ) : CUDT
u System.Int32
return CUDT

getlasterror() public static method

public static getlasterror ( ) : CUDTException
return CUDTException

getpeername() public static method

public static getpeername ( Int32 u, IPAddress name, int &namelen ) : int
u System.Int32
name System.Net.IPAddress
namelen int
return int

getsockname() public static method

public static getsockname ( Int32 u, IPAddress name, int &namelen ) : int
u System.Int32
name System.Net.IPAddress
namelen int
return int

getsockopt() public static method

public static getsockopt ( Int32 u, int level, UDTOpt optname, Object optval, int &optlen ) : int
u System.Int32
level int
optname UDTOpt
optval Object
optlen int
return int

initSynch() public method

public initSynch ( ) : void
return void

listen() public static method

public static listen ( IPAddress addr, CPacket &packet ) : int
addr System.Net.IPAddress
packet CPacket
return int

listen() public method

public listen ( Int32 u, int backlog ) : int
u System.Int32
backlog int
return int

listen() public method

public listen ( ) : void
return void

open() public method

public open ( ) : void
return void

perfmon() public static method

public static perfmon ( Int32 u, CPerfMon perf ) : int
u System.Int32
perf CPerfMon
return int

perfmon() public static method

public static perfmon ( Int32 u, CPerfMon perf, bool clear ) : int
u System.Int32
perf CPerfMon
clear bool
return int

processCtrl() public method

public processCtrl ( CPacket ctrlpkt ) : void
ctrlpkt CPacket
return void

recv() public static method

public static recv ( Int32 u, byte buf, int len, int flags ) : int
u System.Int32
buf byte
len int
flags int
return int

recv() public method

public recv ( byte data, int len ) : int
data byte
len int
return int

recvfile() public static method

public static recvfile ( Int32 u, Stream ofs, System.Int64 offset, System.Int64 size ) : System.Int64
u System.Int32
ofs Stream
offset System.Int64
size System.Int64
return System.Int64

recvfile() public static method

public static recvfile ( Int32 u, Stream ofs, System.Int64 offset, System.Int64 size, int block ) : System.Int64
u System.Int32
ofs Stream
offset System.Int64
size System.Int64
block int
return System.Int64

recvfile() public method

public recvfile ( Stream ofs, System.Int64 offset, System.Int64 size, int block ) : System.Int64
ofs Stream
offset System.Int64
size System.Int64
block int
return System.Int64

recvmsg() public static method

public static recvmsg ( Int32 u, byte buf, int len ) : int
u System.Int32
buf byte
len int
return int

recvmsg() public method

public recvmsg ( byte data, int len ) : int
data byte
len int
return int

releaseSynch() public method

public releaseSynch ( ) : void
return void

sample() public method

public sample ( CPerfMon perf ) : void
perf CPerfMon
return void

sample() public method

public sample ( CPerfMon perf, bool clear ) : void
perf CPerfMon
clear bool
return void

select() public static method

public static select ( int nfds, fd_set readfds, fd_set writefds, fd_set exceptfds, timeval timeout ) : int
nfds int
readfds fd_set
writefds fd_set
exceptfds fd_set
timeout timeval
return int

selectEx() public static method

public static selectEx ( Int32 fds, Int32 readfds, Int32 writefds, Int32 exceptfds, System.Int64 msTimeOut ) : int
fds System.Int32
readfds System.Int32
writefds System.Int32
exceptfds System.Int32
msTimeOut System.Int64
return int

send() public static method

public static send ( Int32 u, byte buf, int len, int flags ) : int
u System.Int32
buf byte
len int
flags int
return int

send() public method

public send ( byte data, int len ) : int
data byte
len int
return int

sendCtrl() public method

public sendCtrl ( int pkttype, IntPtr lparam, IntPtr rparam, int size ) : void
pkttype int
lparam System.IntPtr
rparam System.IntPtr
size int
return void

sendfile() public static method

public static sendfile ( Int32 u, Stream ifs, System.Int64 offset, System.Int64 size ) : System.Int64
u System.Int32
ifs Stream
offset System.Int64
size System.Int64
return System.Int64

sendfile() public static method

public static sendfile ( Int32 u, Stream ifs, System.Int64 offset, System.Int64 size, int block ) : System.Int64
u System.Int32
ifs Stream
offset System.Int64
size System.Int64
block int
return System.Int64

sendfile() public method

public sendfile ( Stream ifs, System.Int64 offset, System.Int64 size, int block ) : System.Int64
ifs Stream
offset System.Int64
size System.Int64
block int
return System.Int64

sendmsg() public static method

public static sendmsg ( Int32 u, byte buf, int len ) : int
u System.Int32
buf byte
len int
return int

sendmsg() public static method

public static sendmsg ( Int32 u, byte buf, int len, int ttl, bool inorder ) : int
u System.Int32
buf byte
len int
ttl int
inorder bool
return int

sendmsg() public method

public sendmsg ( byte data, int len, int msttl, bool inorder ) : int
data byte
len int
msttl int
inorder bool
return int

setOpt() public method

public setOpt ( UDTOpt optName, Object optval, int optlen ) : void
optName UDTOpt
optval Object
optlen int
return void

setsockopt() public static method

public static setsockopt ( Int32 u, int level, UDTOpt optname, Object optval, int optlen ) : int
u System.Int32
level int
optname UDTOpt
optval Object
optlen int
return int

socket() public static method

public static socket ( AddressFamily af, UDTSockType type, int protocol ) : Int32
af AddressFamily
type UDTSockType
protocol int
return System.Int32

startup() public static method

public static startup ( ) : int
return int

Property Details

m_Linger public property

public LingerOption,System.Net.Sockets m_Linger
return System.Net.Sockets.LingerOption

m_PeerID public property

public UdtSocket,NewTOAPIA.Net.Udt m_PeerID
return UdtSocket

m_SocketID public property

public Int32,System m_SocketID
return System.Int32

m_bClosing public static property

public static bool m_bClosing
return bool

m_bOpened public property

public bool m_bOpened
return bool

m_bRendezvous public property

public bool m_bRendezvous
return bool

m_bReuseAddr public property

public bool m_bReuseAddr
return bool

m_bShutdown public property

public bool m_bShutdown
return bool

m_bSynRecving public property

public bool m_bSynRecving
return bool

m_bSynSending public property

public bool m_bSynSending
return bool

m_iBandwidth public property

public int m_iBandwidth
return int

m_iBrokenCounter public property

public int m_iBrokenCounter
return int

m_iDeliveryRate public property

public int m_iDeliveryRate
return int

m_iEXPCount public property

public int m_iEXPCount
return int

m_iFlightFlagSize public property

public int m_iFlightFlagSize
return int

m_iIPversion public property

public AddressFamily m_iIPversion
return AddressFamily

m_iMSS public property

public int m_iMSS
return int

m_iRTT public property

public int m_iRTT
return int

m_iRTTVar public property

public int m_iRTTVar
return int

m_iRcvBufSize public property

public int m_iRcvBufSize
return int

m_iRcvTimeOut public property

public int m_iRcvTimeOut
return int

m_iSndBufSize public property

public int m_iSndBufSize
return int

m_iSndTimeOut public property

public int m_iSndTimeOut
return int

m_iUDPRcvBufSize public property

public int m_iUDPRcvBufSize
return int

m_iUDPSndBufSize public property

public int m_iUDPSndBufSize
return int

m_llMaxBW public property

public Int64,System m_llMaxBW
return System.Int64