|
-
Sep 1st, 2005, 09:43 PM
#1
Thread Starter
Lively Member
blocking tcp server ?
hi, i am setting up a tcp server, and was wondering if there is a way to have the Listen() method block the calling thread, or to get a notification when a connection attempt is made.
Also, as a side note, is there a way to determine the source address of an attempted connection before accepting/denying it?
Thx in advance,
John
-
Sep 2nd, 2005, 08:45 AM
#2
Junior Member
Re: blocking tcp server ?
i don't understand exactly what you want but the metod is this :
VB Code:
private sub Form_Load
sckListen.LocalPort = 9999
sckListen.Listen
end sub
Private Sub sckListen_ConnectionRequest(ByVal requestID As Long)
sckListen.Close
sckListen.Accept requestID
End Sub
U`ll Never Get To HEAVEN If U`re Scared Of Gettin` HIGH
-
Sep 2nd, 2005, 12:27 PM
#3
Thread Starter
Lively Member
Re: blocking tcp server ?
whoops sry, i forgot to specify i am in vb.net or c#.net, not the legacy vb
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|