Private System.Collections.ArrayList m_workSocketList=ArrayList.Synchronized(New System.Collections.ArrayList())
Socket workerSocker=m_mainSocket.EndAccept
Above is c# code,who can converted to vb.net code.thanks
Printable View
Private System.Collections.ArrayList m_workSocketList=ArrayList.Synchronized(New System.Collections.ArrayList())
Socket workerSocker=m_mainSocket.EndAccept
Above is c# code,who can converted to vb.net code.thanks
VB Code:
Private m_workSocketList As ArrayList = ArrayList.Synchronized(New System.Collections.ArrayList) Dim workerSocker As System.Net.Sockets.Socket = m_mainSocket.EndAccept
Socket workerSocker=m_mainSocket.EndAccept(asyn)
Interlocked.Increment(ref m_ClientCount)
m_workerSocketList.Add(workerSocket)
SendMsgToClient(msg,m_Client)
How to converted above this?
Hi,Quote:
Originally Posted by brale
You can try this;
Wkr,Code:Dim workerSocker As Socket = m_mainSocket.EndAccept(asyn)
Interlocked.Increment(m_ClientCount)
m_workerSocketList.Add(workerSocket)
SendMsgToClient(msg, m_Client)
sparrow1
'brale', the code you are posting (and have posted previously) is not C# code. C# is case sensitive and certainly doesn't understand "Private" or "New". C# code also has a semi-colon at the end of statements. (What planet are you from?)