PC Review


Reply
Thread Tools Rate Thread

.Net equivalent app of VB6 app using Winsock control

 
 
MikeL
Guest
Posts: n/a
 
      22nd May 2005
Hello.

I want to rewrite a VB6 app that uses the Winsock control to communitate to
an IBM AS/400 computer via TCP/IP, and possibly later on via UDP.

What .Net namespaces/classes/etc.would I need to look at to get this thing
going? Also, what pitfalls (if any) should I look out for?

Thanks in advance,

Mike


 
Reply With Quote
 
 
 
 
Sean Hederman
Guest
Posts: n/a
 
      22nd May 2005
"MikeL" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello.
>
> I want to rewrite a VB6 app that uses the Winsock control to communitate
> to an IBM AS/400 computer via TCP/IP, and possibly later on via UDP.
>
> What .Net namespaces/classes/etc.would I need to look at to get this thing
> going? Also, what pitfalls (if any) should I look out for?


Have a look at the System.Net namespaces. In particular the Socket class,
TcpClient and TcpListener. TcpClient and TcpListener provide a higher-level
interface than Socket. For UDP, you can use UdpClient. TcpListener listens
for connections and returns a TcpClient when a connection is created.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Winsock equivalent? Daniel Microsoft VB .NET 5 21st Jun 2005 03:46 PM
Using the Winsock control... Brad Pears Microsoft Access Form Coding 0 10th Nov 2004 04:14 PM
using the WInsock control.... Brad Pears Microsoft Access Forms 0 10th Nov 2004 04:04 PM
Equivalent of VB6 Winsock control in C# Mike P Microsoft C# .NET 2 6th Sep 2004 10:28 PM
winsock control dexta Microsoft VB .NET 1 1st Sep 2003 05:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:42 PM.