473,322 Members | 1,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

.NET Sockets Help

Hi, I'm a beginner to VB.NET ...
I ve been trying to learn .net System.Net.Sockets but i cant seem to figure
out a few things... Being that I am an ex-VB6 developer, I am pretty used
to Winsock programming.

So far, I have figured out how to accept multiple connections to a single
port and send and receive data from the network streams.

What I am having trouble with now, is determining when the socket is closed
unexpectedly. WIth Winsock programming, I could just listen in on the
Closed event, but there is no such event now..

So my question is how can i determine if the client closes the connection
unexpectedly.

Also, does a class exist for VB.NET which more or less simulates a Winsock
environment, or at least makes .net sockets a bit easier, at least for a new
guy? ;) Any examples would be appreciated.

Thanks in advance,
Bryan
Nov 20 '05 #1
2 1522
Hi Bryan
I bought the "Peer-To-Peer with vb.net" book, and I found very great
samples..
You may check out this url...
http://apress.com/book/bookDisplay.html?bID=174
You can also download some samples..

Stan

"b.m." <mi***@beginningsend.REMOVEME.net> a écrit dans le message de news:
tP*****************@twister.nyc.rr.com...
Hi, I'm a beginner to VB.NET ...
I ve been trying to learn .net System.Net.Sockets but i cant seem to figure out a few things... Being that I am an ex-VB6 developer, I am pretty used
to Winsock programming.

So far, I have figured out how to accept multiple connections to a single
port and send and receive data from the network streams.

What I am having trouble with now, is determining when the socket is closed unexpectedly. WIth Winsock programming, I could just listen in on the
Closed event, but there is no such event now..

So my question is how can i determine if the client closes the connection
unexpectedly.

Also, does a class exist for VB.NET which more or less simulates a Winsock
environment, or at least makes .net sockets a bit easier, at least for a new guy? ;) Any examples would be appreciated.

Thanks in advance,
Bryan

Nov 20 '05 #2
Hi Bryan
I bought the "Peer-To-Peer with vb.net" book, and I found very great
samples..
You may check out this url...
http://apress.com/book/bookDisplay.html?bID=174
You can also download some samples..

Stan

"b.m." <mi***@beginningsend.REMOVEME.net> a écrit dans le message de news:
tP*****************@twister.nyc.rr.com...
Hi, I'm a beginner to VB.NET ...
I ve been trying to learn .net System.Net.Sockets but i cant seem to figure out a few things... Being that I am an ex-VB6 developer, I am pretty used
to Winsock programming.

So far, I have figured out how to accept multiple connections to a single
port and send and receive data from the network streams.

What I am having trouble with now, is determining when the socket is closed unexpectedly. WIth Winsock programming, I could just listen in on the
Closed event, but there is no such event now..

So my question is how can i determine if the client closes the connection
unexpectedly.

Also, does a class exist for VB.NET which more or less simulates a Winsock
environment, or at least makes .net sockets a bit easier, at least for a new guy? ;) Any examples would be appreciated.

Thanks in advance,
Bryan

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dmitry Akselrod | last post by:
Hello everyone, I have a vb.net application that wraps the TCPListener object in a class. The server connects to the local interface and establishes itself on port 9900. It then polls for...
0
by: mrpolitics | last post by:
So I'm working with PureIRCD (http://sourceforge.net/projects/pure-ircd) and everything was fine untill yesterday when the server crashed. So I did a cold restart and staretd the server back up...
15
by: mrpolitics | last post by:
So I'm working with PureIRCD (http://sourceforge.net/projects/pure-ircd) and everything was fine untill yesterday when the server crashed. So I did a cold restart and staretd the server back up...
4
by: BadOmen | last post by:
Hi, What is the different between 'System.Net.Sockets.Socket' and 'System.Net.Sockets.TcpClient'? When do I use System.Net.Sockets.TcpClient and System.Net.Sockets.Socket?? Yours, Jonas
2
by: Jm | last post by:
Hi All Im trying to get a bit of background info on .net.sockets for an app that im upgrading to be .net. Under vb6 i used the winsock control and would start it listening and it would call an...
3
by: Michael Maercker | last post by:
hi! i'm really not into networking at all and have now been asigned the task of porting a vb6-code into vb.net (compact framework, in this case) and the code uses the winsock-control. i quickly...
2
by: Stressed Out Developer | last post by:
We have an application that has a 200 count loop that does the following: ' Each time thru the loop we pass the next IP Address is a range (aka 192.168.4.50 thru 192.168.4.254) Try If...
11
by: Steven | last post by:
Hi, I need to write an application using sockets. I have a server and about 10 clients "speaking" at the same time with the server, so i guess i need to use asynchronous sockets. But the server...
1
by: verge | last post by:
hello everyone! how's it going? like everyone in here im in need of some help and good friendship along the way...take a look at this: //MODIFIED SO IT DEALS WITH WINDOWS FTP USING ACTIVE...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.