Solved

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

Posted on 2004-10-18
4
195 Views
Last Modified: 2010-04-23
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
Comment
Question by:addicktz
  • 3
4 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 12340972
Sure, where did this come from?

Bob
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 12349784
How much do you want explained here, above what was already explained?

Bob
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 300 total points
ID: 12350154
All this should be the same information as the other questions--nothing new here.

Bob
0
 
LVL 1

Author Comment

by:addicktz
ID: 12350171
thank you, do u mind taking a look at some of my other questions under vb.net ? I would appreciate it =)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question