Solved

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

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

Technology Partners: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expression Evaluater 3 45
How do sunrise and sunset times change with altitude 14 46
How to limit User Input 2 33
VB.NET - Refactor Class per SOLID principles 2 33
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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