![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Aug 2005
Posts: 6
Rep Power: 0
![]() |
Networking in vb.net
I was wondering if anybody knew how to do some networking in visual basic .net.
I remember reading somewhere on here that if i wanted to make more of a server application i should use vb.net. Right now i have so far been using the winsock control & vb6 for all my server based applications (and it has a tendency to not be very good at it), does anybody know how to use vb.net for networking? |
|
|
|
|
|
#2 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
Yup...Take a look at System.Net.Sockets.TcpClient and System.Net.Sockets.TcpListener
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#3 |
|
Expert Programmer
|
Yeah, the .NET Framework lets you interact at a much lower level and supports true multithreading, so its a lot better for high load applications. The Tcp objects can be a bit unpredictable though and often raise near-pointless exceptions, so its a good idea to wrapper them in some way. Also, they can lead to race conditions if you're not careful, especially when step-thru debugging, which caused me a lot of grief on an FTP server this morning...
![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|