PC Review


Reply
Thread Tools Rate Thread

How to create a client server app

 
 
Matt
Guest
Posts: n/a
 
      9th Dec 2003
Hello,

I'm just recently moved up to .NET, and because in my old
networked applications I used the Winsock control which
vb.net doesnt support naturally, i dont want to use it
anymore. So, I was poking around in the standard objects
stuff, and i found that you can use the system objects
supports sockets. i got very excited about this, and then
i relized that it didnt provide support for listening to
see if you have a new message in the buffer... does
anyone know how to create it so that it works like the old
winsock control...

thanks in advance
matt
 
Reply With Quote
 
 
 
 
Bernie Yaeger
Guest
Posts: n/a
 
      9th Dec 2003
Hi Matt,

Don't know very much about the winsock control in vb 6, but can't you use it
as a com object using interop services? A bit 'non-managed', but you'd get
all the functionality you're used to in this fashion.

HTH,

Bernie Yaeger
"Matt" <(E-Mail Removed)> wrote in message
news:008001c3be6a$293b5170$(E-Mail Removed)...
> Hello,
>
> I'm just recently moved up to .NET, and because in my old
> networked applications I used the Winsock control which
> vb.net doesnt support naturally, i dont want to use it
> anymore. So, I was poking around in the standard objects
> stuff, and i found that you can use the system objects
> supports sockets. i got very excited about this, and then
> i relized that it didnt provide support for listening to
> see if you have a new message in the buffer... does
> anyone know how to create it so that it works like the old
> winsock control...
>
> thanks in advance
> matt



 
Reply With Quote
 
Guest
Posts: n/a
 
      9th Dec 2003
Thats not really what Im after, I hated the winsock
control. So what I'm really asking is how to do
networking in VB.NET. I could use the winsock control,
but i'll only do that as a last resort because not many
computers actually have the DLL's and OCX's need to run
it...

matt
>-----Original Message-----
>Hi Matt,
>
>Don't know very much about the winsock control in vb 6,

but can't you use it
>as a com object using interop services? A bit 'non-

managed', but you'd get
>all the functionality you're used to in this fashion.
>
>HTH,
>
>Bernie Yaeger
>"Matt" <(E-Mail Removed)> wrote in

message
>news:008001c3be6a$293b5170$(E-Mail Removed)...
>> Hello,
>>
>> I'm just recently moved up to .NET, and because in my

old
>> networked applications I used the Winsock control which
>> vb.net doesnt support naturally, i dont want to use it
>> anymore. So, I was poking around in the standard

objects
>> stuff, and i found that you can use the system objects
>> supports sockets. i got very excited about this, and

then
>> i relized that it didnt provide support for listening to
>> see if you have a new message in the buffer... does
>> anyone know how to create it so that it works like the

old
>> winsock control...
>>
>> thanks in advance
>> matt

>
>
>.
>

 
Reply With Quote
 
Tom Shelton
Guest
Posts: n/a
 
      10th Dec 2003
On 2003-12-09, Matt <(E-Mail Removed)> wrote:
> Hello,
>
> I'm just recently moved up to .NET, and because in my old
> networked applications I used the Winsock control which
> vb.net doesnt support naturally, i dont want to use it
> anymore. So, I was poking around in the standard objects
> stuff, and i found that you can use the system objects
> supports sockets. i got very excited about this, and then
> i relized that it didnt provide support for listening to
> see if you have a new message in the buffer... does
> anyone know how to create it so that it works like the old
> winsock control...
>
> thanks in advance
> matt


Basically, your wanting the events... Well, you basically can get that
using asyncronous sockets in .NET. A good staring point for information
on using sockets in .NET is here:

http://msdn.microsoft.com/library/de...consockets.asp

--
Tom Shelton
MVP [Visual Basic]
 
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
Server-Requested Client Action MoveCopy, Unable to create dest msg. Sandy Microsoft Outlook 2 27th Nov 2008 03:36 PM
How to Create WinForms client and ClassLib server as one assembly? Joseph Geretz Microsoft C# .NET 6 18th Feb 2007 08:43 PM
How to Create WinForms client and ClassLib server as one assembly? Joseph Geretz Microsoft Dot NET Framework 6 18th Feb 2007 08:43 PM
How to Create WinForms client and ClassLib server as one assembly? Joseph Geretz Microsoft Dot NET Framework Forms 6 18th Feb 2007 08:43 PM
DHCP client does not create A record on the DNS server =?Utf-8?B?Q2hyaXN0b3BoZXI=?= Security Networking 0 19th Oct 2006 03:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:36 AM.