vb.net sockets function :: 2/3 :: need explained

Please explain the lines with the *** next to them.


Public Class StateObject
***     Public workSocket As Socket = Nothing
           Public BufferSize As Integer = 32767
***     Public buffer(32767) As Byte
***     Public sb As New StringBuilder
End Class


Private Sub sockConnected(ByVal ar As IAsyncResult)
            Try
                If client.Connected = False Then RaiseEvent onError("Connection refused.") : Exit Sub
                Dim state As New StateObject
***          state.workSocket = client
***          client.BeginReceive(state.buffer, 0, state.BufferSize, 0, AddressOf sockDataArrival, state)
                RaiseEvent onConnect()
            Catch
                RaiseEvent onError(Err.Description)
                Exit Sub
            End Try
        End Sub
LVL 1
addicktzAsked:
Who is Participating?
 
Bob LearnedConnect With a Mentor Commented:
All this should be the same information as the other questions--nothing new here.

Bob
0
 
Bob LearnedCommented:
Sure, where did this come from?

Bob
0
 
Bob LearnedCommented:
How much do you want explained here, above what was already explained?

Bob
0
 
addicktzAuthor Commented:
thank you, do u mind taking a look at some of my other questions under vb.net ? I would appreciate it =)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.