public void Accept ()
{
#if !MOONLIGHT
Socket acc_socket = null;
try {
if (args != null && args.AcceptSocket != null) {
result.Sock.Accept (args.AcceptSocket);
acc_socket = args.AcceptSocket;
} else {
acc_socket = result.Sock.Accept ();
if (args != null)
args.AcceptSocket = acc_socket;
}
} catch (Exception e) {
result.Complete (e);
return;
}
result.Complete (acc_socket);
#endif
}