.Net Sockets
.Net Sockets
.Net Sockets
.Net Sockets
.Net Sockets
.Net Sockets .Net Sockets .Net Sockets .Net Sockets .Net Sockets .Net Sockets .Net Sockets .Net Sockets
.Net Sockets .Net Sockets
.Net Sockets
Go Back  Xtreme Visual Basic Talk > > > .Net Sockets


Reply
 
Thread Tools Display Modes
  #1  
Old 08-08-2004, 06:06 PM
Anton- Anton- is offline
Newcomer
 
Join Date: Jul 2004
Posts: 10
Default .Net Sockets


Hi,

I wonder if somebody could kindly explain how I can do the following.

I currently have a .NET application that uses the com port (rs232.vb). My application sends and receives ASCII text.

I would like to allow the option of connnecting via Ethernet.

Can somebody exaplain with examples how I can set this up?

I would like info on how to connect to IP address x.x.x.x port xxxx and then send simple ascii using the write command.

I have done some research on .NET sockets but it appears unbelievably complex to do such a simple task.

Many Thanks.
Reply With Quote
  #2  
Old 08-09-2004, 04:49 AM
Anton- Anton- is offline
Newcomer
 
Join Date: Jul 2004
Posts: 10
Default .NET SOCKETS/Winsock

Since my last email I see that somebody has posted the following code:

Private Sub Winsock1_Connect()
Form1.Caption = "Sent - " & Time
Winsock1.SendData Text1.Text & vbcrlf
End Sub

Looks very simple, just what I am after. If I wanted to use winsock in vb.net how do I get it installed and where does my reference to the IP address I want to connect to go?

I can answer any advanced electronics questions that you guys have!

Please see my initial email above, if using VB.NET sockets is the best way then please can somebody explain how?

Edit by lebb: Please don't post multiple threads on the same subject. If you need to clarify a question or add more information, do so as a reply to your original thread. Thanks.

Last edited by lebb; 08-09-2004 at 08:19 AM. Reason: Merged threads
Reply With Quote
  #3  
Old 08-17-2004, 12:00 PM
Anton- Anton- is offline
Newcomer
 
Join Date: Jul 2004
Posts: 10
Default .NET Sockets

Its great when you figure things out for yourself.

The previous thread explained how I could connect via TCP/IP but it would take 15+ secs to connect.

If connecting via IP address then the address must be converted to system.net ip address using parse:

Dim ipAddress As IPAddress = ipAddress.Parse(ethernetip.Text)

Regards,
Anton
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
.Net Sockets
.Net Sockets
.Net Sockets .Net Sockets
.Net Sockets
.Net Sockets
.Net Sockets .Net Sockets .Net Sockets .Net Sockets .Net Sockets .Net Sockets .Net Sockets
.Net Sockets
.Net Sockets
 
.Net Sockets
.Net Sockets
 
-->