• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

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
0
addicktz
Asked:
addicktz
  • 3
1 Solution
 
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
 
Bob LearnedCommented:
All this should be the same information as the other questions--nothing new here.

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now