Computing.Net > Forums > Programming > Chatting application

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Chatting application

Reply to Message Icon

Name: olumide
Date: October 27, 2004 at 17:23:55 Pacific
OS: win2000
CPU/Ram: 256
Comment:

I have a school project to develop an application that can chat using IP addresses and port number. I ahve chosen Visual Basic because of the WINSOCK control that helps in the TCP connection. MY problem now is that whenever I try to connect to the remote system using its IP address, I flags error 40006, Wrong Protocol or connection state. Please I need help here.
Olumode



Sponsored Link
Ads by Google

Response Number 1
Name: BlueRaja
Date: October 27, 2004 at 22:14:24 Pacific
Reply:

Ok, I'll just take a look at your code..
...Hmm..You seem to be missing something...

AKhalifman@hotmail.com


0

Response Number 2
Name: Chi Happens
Date: October 28, 2004 at 06:14:07 Pacific
Reply:

The winsock control can be slightly esoteric.

You need to do this (in the server app) under the Connection Reguest

Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
' This is Server Socket Code
Winsock1.Close
Winsock1.Accept requestID
End Sub


And this is for the client:
Private Sub Winsock1_Close()
' Client Code
Winsock1.Close
End Sub


Also, if you ARE doing both of these things, then you might need to check your Protocol, there are two protocols you can use.

I hope this helps.
Chi

BTW: The WinSock Control is pretty good, but Sockets in .NET roxor!


"They mostly come at night...mostly"


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Chatting application

Speed Of Program: C vs C++ www.computing.net/answers/programming/speed-of-program-c-vs-c/2258.html

How do I design VB client/servers www.computing.net/answers/programming/how-do-i-design-vb-clientservers/7764.html

Java chat room problems www.computing.net/answers/programming/java-chat-room-problems/11373.html