Click here to Skip to main content
15,912,504 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to assign NULL to Date Field ? Pin
Madni Abbasi1-May-05 21:11
Madni Abbasi1-May-05 21:11 
GeneralPicture box binding problem Pin
Binary01101-May-05 20:33
Binary01101-May-05 20:33 
GeneralRe: Picture box binding problem Pin
Madni Abbasi1-May-05 20:55
Madni Abbasi1-May-05 20:55 
GeneralRe: Picture box binding problem Pin
Anonymous1-May-05 21:07
Anonymous1-May-05 21:07 
GeneralRe: Picture box binding problem Pin
Madni Abbasi1-May-05 21:27
Madni Abbasi1-May-05 21:27 
GeneralRe: Picture box binding problem Pin
Binary01101-May-05 21:39
Binary01101-May-05 21:39 
GeneralRe: Picture box binding problem Pin
Binary01102-May-05 7:26
Binary01102-May-05 7:26 
Questionhow to write to a few clients in a socket,please Pin
jpartley1-May-05 18:00
jpartley1-May-05 18:00 
I have a program, it has two thread.
The second thread listen to the network and accept the request, the code is below. And the main thread write messages to the client connected every one minute; how can I write to all the clients connect in the main thread? Do I need some change in the code below?
thanks

Public Sub Listen()

Dim Appreader As System.Configuration.AppSettingsReader
Appreader = New System.Configuration.AppSettingsReader

While blistener
Dim localEndPoint As New IPEndPoint(System.Net.IPAddress.Parse( _
Appreader.GetValue("localAddr", GetType(System.String))), _
Appreader.GetValue("localPort", GetType(System.String)))

Listener = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
Try
Listener.Bind(localEndPoint)
Listener.Listen(10)

While True
Console.WriteLine(Chr(10) + "等待连接中...")
' Program is suspended while waiting for an incoming connection.
Listener.Accept()
Console.Write(Chr(10) + "连接!")
End While
Catch ex As Exception

End Try


End While

GeneralTo Mr. Dave.... Pin
vishalmishra1-May-05 9:11
vishalmishra1-May-05 9:11 
GeneralRe: To Mr. Dave.... Pin
Colin Angus Mackay1-May-05 10:28
Colin Angus Mackay1-May-05 10:28 
GeneralRe: To Mr. Dave.... Pin
Dave Kreskowiak1-May-05 15:43
mveDave Kreskowiak1-May-05 15:43 
GeneralRe: To Mr. Dave.... Pin
Christian Graus1-May-05 17:03
protectorChristian Graus1-May-05 17:03 
GeneralRe: To Mr. Dave.... Pin
Dave Kreskowiak2-May-05 0:48
mveDave Kreskowiak2-May-05 0:48 
GeneralRe: To Mr. Dave.... Pin
vishalmishra1-May-05 20:54
vishalmishra1-May-05 20:54 
GeneralError i got while debugging ASP.NET Application Pin
vishalmishra1-May-05 9:06
vishalmishra1-May-05 9:06 
GeneralRe: Error i got while debugging ASP.NET Application Pin
Dave Kreskowiak1-May-05 15:39
mveDave Kreskowiak1-May-05 15:39 
GeneralVB.Net Math program Pin
John6301-May-05 6:31
John6301-May-05 6:31 
GeneralRe: VB.Net Math program Pin
Fernando Soto1-May-05 9:29
Fernando Soto1-May-05 9:29 
GeneralRe: VB.Net Math program Pin
Brian Van Beek2-May-05 12:02
Brian Van Beek2-May-05 12:02 
GeneralRe: VB.Net Math program Pin
Christian Graus1-May-05 17:52
protectorChristian Graus1-May-05 17:52 
Generaluser login Pin
kamilah1-May-05 3:23
kamilah1-May-05 3:23 
GeneralRe: user login Pin
Sebastien Lachance1-May-05 5:48
Sebastien Lachance1-May-05 5:48 
Questioncan any one answer to my question posted on 30th April Pin
Madni Abbasi30-Apr-05 23:22
Madni Abbasi30-Apr-05 23:22 
AnswerRe: can any one answer to my question posted on 30th April Pin
Colin Angus Mackay30-Apr-05 23:29
Colin Angus Mackay30-Apr-05 23:29 
AnswerRe: can any one answer to my question posted on 30th April Pin
Anonymous3-May-05 3:00
Anonymous3-May-05 3:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.