public void Init (Socket sock, object state, AsyncCallback callback, SocketOperation operation)
{
this.Sock = sock;
if (sock != null) {
this.blocking = sock.blocking;
this.handle = sock.socket;
} else {
this.blocking = true;
this.handle = IntPtr.Zero;
}
this.state = state;
this.callback = callback;
this.operation = operation;
SockFlags = SocketFlags.None;
if (waithandle != null)
((ManualResetEvent) waithandle).Reset ();
delayedException = null;
EndPoint = null;
Buffer = null;
Offset = 0;
Size = 0;
SockFlags = 0;
AcceptSocket = null;
Addresses = null;
Port = 0;
Buffers = null;
ReuseSocket = false;
acc_socket = null;
total = 0;
completed_sync = false;
completed = false;
blocking = false;
error = 0;
ares = null;
EndCalled = 0;
}