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 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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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)...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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....
|
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...
| |