C# Class NewTOAPIA.Net.Udt.CUDT

Afficher le fichier Open project: Wiladams/NewTOAPIA Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

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

Method Details

CUDT() public méthode

public CUDT ( CUDT ancestor ) : System
ancestor CUDT
Résultat System

accept() public static méthode

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

bind() public static méthode

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

bind() public static méthode

public static bind ( Int32 u, Int32 udpsock ) : int
u System.Int32
udpsock System.Int32
Résultat int

checkTimers() public méthode

public checkTimers ( ) : void
Résultat void

cleanup() public static méthode

public static cleanup ( ) : int
Résultat int

close() public static méthode

public static close ( Int32 u ) : int
u System.Int32
Résultat int

close() public méthode

public close ( ) : void
Résultat void

connect() public static méthode

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

connect() public méthode

public connect ( IPAddress peer, CHandShake hs ) : void
peer System.Net.IPAddress
hs CHandShake
Résultat void

connect() public méthode

public connect ( IPEndPoint serv_addr ) : void
serv_addr System.Net.IPEndPoint
Résultat void

destroySynch() public méthode

public destroySynch ( ) : void
Résultat void

getOpt() public méthode

public getOpt ( UDTOpt optName, Object optval, int optlen ) : void
optName UDTOpt
optval Object
optlen int
Résultat void

getUDTHandle() public static méthode

public static getUDTHandle ( Int32 u ) : CUDT
u System.Int32
Résultat CUDT

getlasterror() public static méthode

public static getlasterror ( ) : CUDTException
Résultat CUDTException

getpeername() public static méthode

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

getsockname() public static méthode

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

getsockopt() public static méthode

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
Résultat int

initSynch() public méthode

public initSynch ( ) : void
Résultat void

listen() public static méthode

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

listen() public méthode

public listen ( Int32 u, int backlog ) : int
u System.Int32
backlog int
Résultat int

listen() public méthode

public listen ( ) : void
Résultat void

open() public méthode

public open ( ) : void
Résultat void

perfmon() public static méthode

public static perfmon ( Int32 u, CPerfMon perf ) : int
u System.Int32
perf CPerfMon
Résultat int

perfmon() public static méthode

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

processCtrl() public méthode

public processCtrl ( CPacket ctrlpkt ) : void
ctrlpkt CPacket
Résultat void

recv() public static méthode

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

recv() public méthode

public recv ( byte data, int len ) : int
data byte
len int
Résultat int

recvfile() public static méthode

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
Résultat System.Int64

recvfile() public static méthode

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
Résultat System.Int64

recvfile() public méthode

public recvfile ( Stream ofs, System.Int64 offset, System.Int64 size, int block ) : System.Int64
ofs Stream
offset System.Int64
size System.Int64
block int
Résultat System.Int64

recvmsg() public static méthode

public static recvmsg ( Int32 u, byte buf, int len ) : int
u System.Int32
buf byte
len int
Résultat int

recvmsg() public méthode

public recvmsg ( byte data, int len ) : int
data byte
len int
Résultat int

releaseSynch() public méthode

public releaseSynch ( ) : void
Résultat void

sample() public méthode

public sample ( CPerfMon perf ) : void
perf CPerfMon
Résultat void

sample() public méthode

public sample ( CPerfMon perf, bool clear ) : void
perf CPerfMon
clear bool
Résultat void

select() public static méthode

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
Résultat int

selectEx() public static méthode

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
Résultat int

send() public static méthode

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

send() public méthode

public send ( byte data, int len ) : int
data byte
len int
Résultat int

sendCtrl() public méthode

public sendCtrl ( int pkttype, IntPtr lparam, IntPtr rparam, int size ) : void
pkttype int
lparam System.IntPtr
rparam System.IntPtr
size int
Résultat void

sendfile() public static méthode

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
Résultat System.Int64

sendfile() public static méthode

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
Résultat System.Int64

sendfile() public méthode

public sendfile ( Stream ifs, System.Int64 offset, System.Int64 size, int block ) : System.Int64
ifs Stream
offset System.Int64
size System.Int64
block int
Résultat System.Int64

sendmsg() public static méthode

public static sendmsg ( Int32 u, byte buf, int len ) : int
u System.Int32
buf byte
len int
Résultat int

sendmsg() public static méthode

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
Résultat int

sendmsg() public méthode

public sendmsg ( byte data, int len, int msttl, bool inorder ) : int
data byte
len int
msttl int
inorder bool
Résultat int

setOpt() public méthode

public setOpt ( UDTOpt optName, Object optval, int optlen ) : void
optName UDTOpt
optval Object
optlen int
Résultat void

setsockopt() public static méthode

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
Résultat int

socket() public static méthode

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

startup() public static méthode

public static startup ( ) : int
Résultat int

Property Details

m_Linger public_oe property

public LingerOption,System.Net.Sockets m_Linger
Résultat System.Net.Sockets.LingerOption

m_PeerID public_oe property

public UdtSocket,NewTOAPIA.Net.Udt m_PeerID
Résultat UdtSocket

m_SocketID public_oe property

public Int32,System m_SocketID
Résultat System.Int32

m_bClosing public_oe static_oe property

public static bool m_bClosing
Résultat bool

m_bOpened public_oe property

public bool m_bOpened
Résultat bool

m_bRendezvous public_oe property

public bool m_bRendezvous
Résultat bool

m_bReuseAddr public_oe property

public bool m_bReuseAddr
Résultat bool

m_bShutdown public_oe property

public bool m_bShutdown
Résultat bool

m_bSynRecving public_oe property

public bool m_bSynRecving
Résultat bool

m_bSynSending public_oe property

public bool m_bSynSending
Résultat bool

m_iBandwidth public_oe property

public int m_iBandwidth
Résultat int

m_iBrokenCounter public_oe property

public int m_iBrokenCounter
Résultat int

m_iDeliveryRate public_oe property

public int m_iDeliveryRate
Résultat int

m_iEXPCount public_oe property

public int m_iEXPCount
Résultat int

m_iFlightFlagSize public_oe property

public int m_iFlightFlagSize
Résultat int

m_iIPversion public_oe property

public AddressFamily m_iIPversion
Résultat AddressFamily

m_iMSS public_oe property

public int m_iMSS
Résultat int

m_iRTT public_oe property

public int m_iRTT
Résultat int

m_iRTTVar public_oe property

public int m_iRTTVar
Résultat int

m_iRcvBufSize public_oe property

public int m_iRcvBufSize
Résultat int

m_iRcvTimeOut public_oe property

public int m_iRcvTimeOut
Résultat int

m_iSndBufSize public_oe property

public int m_iSndBufSize
Résultat int

m_iSndTimeOut public_oe property

public int m_iSndTimeOut
Résultat int

m_iUDPRcvBufSize public_oe property

public int m_iUDPRcvBufSize
Résultat int

m_iUDPSndBufSize public_oe property

public int m_iUDPSndBufSize
Résultat int

m_llMaxBW public_oe property

public Int64,System m_llMaxBW
Résultat System.Int64