SocketHelper 类
Socket帮助类
继承成员
命名空间: Fantasy.Helper
程序集: Fantasy.Net.dll
语法
public static class SocketHelper
方法
| 编辑本文 查看源代码ReceiveFrom_NonAlloc(Socket, byte[], int, int, SocketFlags, EndPoint)
声明
public static int ReceiveFrom_NonAlloc(this Socket socket, byte[] buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEndPoint)
参数
类型 | 名称 | 描述 |
---|---|---|
Socket | socket | |
byte[] | buffer | |
int | offset | |
int | size | |
SocketFlags | socketFlags | |
EndPoint | remoteEndPoint |
返回
类型 | 描述 |
---|---|
int |
ReceiveFrom_NonAlloc(Socket, byte[], ref EndPoint)
声明
public static int ReceiveFrom_NonAlloc(this Socket socket, byte[] buffer, ref EndPoint remoteEndPoint)
参数
类型 | 名称 | 描述 |
---|---|---|
Socket | socket | |
byte[] | buffer | |
EndPoint | remoteEndPoint |
返回
类型 | 描述 |
---|---|
int |