|
-
May 21st, 2007, 03:45 AM
#1
Thread Starter
Junior Member
How to converted this code?
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
-
May 21st, 2007, 04:11 AM
#2
Re: How to converted this code?
VB Code:
Private m_workSocketList As ArrayList = ArrayList.Synchronized(New System.Collections.ArrayList)
Dim workerSocker As System.Net.Sockets.Socket = m_mainSocket.EndAccept
-
May 21st, 2007, 04:40 AM
#3
Thread Starter
Junior Member
Re: How to converted this code?
Socket workerSocker=m_mainSocket.EndAccept(asyn)
Interlocked.Increment(ref m_ClientCount)
m_workerSocketList.Add(workerSocket)
SendMsgToClient(msg,m_Client)
How to converted above this?
-
May 21st, 2007, 05:29 AM
#4
Re: How to converted this code?
 Originally Posted by brale
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,
You can try this;
Code:
Dim workerSocker As Socket = m_mainSocket.EndAccept(asyn)
Interlocked.Increment(m_ClientCount)
m_workerSocketList.Add(workerSocket)
SendMsgToClient(msg, m_Client)
Wkr,
sparrow1
-
May 21st, 2007, 08:24 AM
#5
Re: How to converted this code?
'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?)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|