Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Bind()

static SocketError System.Net.Sockets.SocketPal.Bind ( SafeSocketHandle handle,
ProtocolType socketProtocolType,
byte[] buffer,
int nameLen )
inlinestatic

Definition at line 139 of file SocketPal.cs.

140 {
141 SocketError socketError = global::Interop.Winsock.bind(handle, buffer, nameLen);
142 if (socketError != SocketError.SocketError)
143 {
144 return SocketError.Success;
145 }
146 return GetLastSocketError();
147 }
static SocketError GetLastSocketError()
Definition SocketPal.cs:22

References System.buffer, System.Net.Sockets.SocketPal.GetLastSocketError(), and System.handle.

Referenced by System.Net.Sockets.Socket.DoBind().