Solved

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

Posted on 2004-10-18
4
192 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Pagebreak issue while printing the aspx page 3 24
VB.NET Repostiory Pattern 7 36
Help with exporting to excel 4 26
Write to a printer using vb.net 9 22
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 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