Changing preprocessor directive for new networking code until verification of correct functionality.

This commit is contained in:
asayre 2012-02-08 03:32:56 +00:00
parent 1ee9317651
commit 3828be5415
2 changed files with 7 additions and 7 deletions

View file

@ -36,7 +36,7 @@ namespace Server.Network
private Queue<Socket> m_Accepted;
private object m_AcceptedSyncRoot;
#if Framework_4_0
#if NewAsyncSockets
private SocketAsyncEventArgs m_EventArgs;
#else
private AsyncCallback m_OnAccept;
@ -63,7 +63,7 @@ namespace Server.Network
DisplayListener();
#if Framework_4_0
#if NewAsyncSockets
m_EventArgs = new SocketAsyncEventArgs();
m_EventArgs.Completed += new EventHandler<SocketAsyncEventArgs>( Accept_Completion );
Accept_Start();
@ -146,7 +146,7 @@ namespace Server.Network
}
}
#if Framework_4_0
#if NewAsyncSockets
private void Accept_Start()
{
bool result = false;

View file

@ -51,7 +51,7 @@ namespace Server.Network {
private bool m_Seeded;
private bool m_Running;
#if Framework_4_0
#if NewAsyncSockets
private SocketAsyncEventArgs m_ReceiveEventArgs, m_SendEventArgs;
#else
private AsyncCallback m_OnReceive, m_OnSend;
@ -615,7 +615,7 @@ namespace Server.Network {
}
if ( gram != null ) {
#if Framework_4_0
#if NewAsyncSockets
m_SendEventArgs.SetBuffer( gram.Buffer, 0, gram.Length );
Send_Start();
#else
@ -648,7 +648,7 @@ namespace Server.Network {
}
}
#if Framework_4_0
#if NewAsyncSockets
public void Start() {
m_ReceiveEventArgs = new SocketAsyncEventArgs();
m_ReceiveEventArgs.Completed += new EventHandler<SocketAsyncEventArgs>( Receive_Completion );
@ -1088,7 +1088,7 @@ namespace Server.Network {
m_Buffer = null;
m_RecvBuffer = null;
#if Framework_4_0
#if NewAsyncSockets
m_ReceiveEventArgs = null;
m_SendEventArgs = null;
#else