borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Building Packet)Next Topic (How to upload a file HTTP POST) New Topic New Poll Post Reply
AndreaVB Forum : Internet Applications : Help with Winsock
Poster Message
8RaM
Level: Guest


icon Help with Winsock

Ok before anyone redirects me to a site about Winsock, just think of me like your 8 year old brother who has just learnt how to create his first visual basic program.   So now he want sot make a chat program using winsock, but he has checked all the sites and they say to him add a winsock to your form then input this code and u have a chat program.  This kid is like ****, i thought this tutorial was for beginners how do i add this winsock to the form so he can make his simple chat program??.

If someone could give a detailed discription of how i would start making a simple chat program it would be much appreciated.

Thx for any positive comments.

  

30-12-2003 at 03:11 AM
| Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: Help with Winsock

Hi 8RaM.
I have coded a simple client/server winsock application for you.
Start the server, then the client.
Enter your messgae on the client and click send. You can send messages to/from the server and client.

Important point to note is that the WinSock control is a control-array. The new items are added on the server instance of the form on a connectionrequest event.

This code is demonstrated in the MSDN.

For information only, I have added a listbox of connected clients to the form. You could extend this to allow direction of the messgaes from the server to the client.

Another note would be that this sample supports multiple connections to a single server, however, the clients cannot speak to each other.
Hope this helps as a starter.
Kieron

BTW. To add a winsock, select "Add Component" from the project menu, choose Microsoft Winsock Control and drop it on your form.
Cheers


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

____________________________
Attached:
winsockdemo.zip 5 KB (Downloads: 18)

03-01-2004 at 04:16 PM
View Profile Send Email to User Show All Posts | Quote Reply
8RaM
Level: Guest

icon Re: Help with Winsock

thanks a lot mate, i will take a look at it later tonight.

05-01-2004 at 04:20 PM
| Quote Reply
AndreaVB Forum : Internet Applications : Help with Winsock
Previous Topic (Building Packet)Next Topic (How to upload a file HTTP POST) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder