PDA

Click to See Complete Forum and Search --> : Winsock Help Needed


Chrono
Jan 3rd, 2000, 02:23 AM
Hey, everyone. I'm looking for help on MS Winsock 6.0. I have everything done and it seems to connect, but I can't figure out how to make a text box show what's going on...
If anyone can help me, it would be greatly appreciated.

B4
Jan 3rd, 2000, 03:12 AM
You can read data into the textbox from the Data_Arrival event using the GetData function of Winsock.

-B4

Chrono
Jan 3rd, 2000, 04:07 AM
OK...I tried that, but it did work. I'll try to be more clear. Here's my deal:
I have Winsock1 in one of my forms and it's connecting to federation.ibgames.net port 23 (it's a game that I'm making a front-end for) I want the data sent to Winsock1 to be viewed in Text2 (the texbox). Form1.Command1 is the button that issues the connect command to Form2.Winsock1. The Text2 is also on Form2. I hope that you can help me out. Thanks again.
~Chrono

[This message has been edited by Chrono (edited 01-03-2000).]

B4
Jan 3rd, 2000, 06:03 AM
Well you said you wanted to get the data being sent to Winsock, so you would read data on the Data_Arrival event. The reason it might not be working is you do you have it listening on the port that the server is sending to. You connect using port 23, but the server might send to a different port, or you might not be listening at all.

-B4