! Winsock Help !
! Winsock Help !
! Winsock Help !
! Winsock Help !
! Winsock Help !
! Winsock Help ! ! Winsock Help ! ! Winsock Help ! ! Winsock Help ! ! Winsock Help ! ! Winsock Help ! ! Winsock Help ! ! Winsock Help !
! Winsock Help ! ! Winsock Help !
! Winsock Help !
Go Back  Xtreme Visual Basic Talk > > > ! Winsock Help !


Reply
 
Thread Tools Display Modes
  #1  
Old 07-03-2002, 02:56 PM
park
Guest
 
Posts: n/a
Question ! Winsock Help !


Ok, here's how it is...

As thousands of other people in the world are doing, I'm making my own messenger/chat client.
Just need some things confirming or corrected about winsock.

You can use 1 winsock control to send OR recieve data, but not both at the same time, but I want it to work instantly, like Yahoo! Messenger, a sort of "real-time" chat.
Will I need to use 2 winsock controls for for this ? One to send and one to recieve ?

Next, I'm actually doing the program as a server I'll run on my computer, and each user has the client that connects to it... does that change things so I only need 1 winsock control or will I still need 2 ?

Finally, senddata & getdata...

I know you can send data by:

Winsock1.SendData Text1.Text

What I am trying to do though is when someone connects to the server, for it to senddata back to the client but without using a textbox, I get an error with everything I've tried.

Last thing... sorry to be writing an essay

I also want the server to send data to the client if it shuts down for whatever reason, so that people who were connected know it's offline.
I've tried putting this as a senddata within the Form_Unload but that doesn't work.

Any help or ideas on these problems would be GREATLY appreciated.

Peace \/
Reply With Quote
  #2  
Old 07-03-2002, 03:26 PM
pekko pekko is offline
Freshman
 
Join Date: Jun 2002
Location: Finland
Posts: 45
Default

You need only one winsock control, that will handle receive/send

If you want multiple client to be able connect to you server
then in the server side you need array of winsock controls (1/client connections)
Reply With Quote
  #3  
Old 07-03-2002, 03:34 PM
ChiefRedBull's Avatar
ChiefRedBull! Winsock Help ! ChiefRedBull is offline
ISearchGoogle

Retired Moderator
* Expert *
 
Join Date: May 2001
Location: england
Posts: 6,321
Default

__________________
Chuck Norris ordered a Big Mac at Burger King, and got one.
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
! Winsock Help !
! Winsock Help !
! Winsock Help ! ! Winsock Help !
! Winsock Help !
! Winsock Help !
! Winsock Help ! ! Winsock Help ! ! Winsock Help ! ! Winsock Help ! ! Winsock Help ! ! Winsock Help ! ! Winsock Help !
! Winsock Help !
! Winsock Help !
 
! Winsock Help !
! Winsock Help !
 
-->