Return to package dfl. www.dprogramming.com

module dfl.socket

classes
GetHost SocketQueue
enums
EventType
functions
asyncGetHostByAddr asyncGetHostByAddr asyncGetHostByName registerEvent unregisterEvent

asyncGetHostByAddr
public GetHost asyncGetHostByAddr(uint32_t addr, GetHostCallback callback);

asyncGetHostByAddr
public GetHost asyncGetHostByAddr(char[] addr, GetHostCallback callback);

asyncGetHostByName
public GetHost asyncGetHostByName(char[] name, GetHostCallback callback);

EventType
public enum EventType
{
	NONE,
	READ,
	WRITE,
	OOB,
	ACCEPT,
	CONNECT,
	CLOSE,
	QOS,
	GROUP_QOS,
}

GetHost
public class GetHost
{
public void cancel();
}

registerEvent
public void registerEvent(Socket sock, EventType events, RegisterEventCallback callback);

SocketQueue
public class SocketQueue
{
public void event(Socket _sock, EventType type, int err); public void[] peek(); public void[] peek(uint len); public void readEvent(); public void[] receive(); public void[] receive(uint len); public uint receiveBytes(); public void reset(); public void send(void[] buf); public uint sendBytes(); public final Socket socket();    [property getter] public this(Socket sock); public void writeEvent();
}

unregisterEvent
public void unregisterEvent(Socket sock);