PDA

Click to See Complete Forum and Search --> : MsComm Useage


shaba
May 25th, 2000, 08:26 AM
Hi folks,

I want to create a simple two player chess game where a friend can dial up my computer, establish a connection and send data back and forth. I have read a lot of information on using the winsock control to communicate through a tcp connection. But i am not very clear on how to implement the first step. That is, how do i establish the connection through dial up in the first place? How do i make one computer listen for a connection while the other one dials the number and requests a connection. After this part, how do i accept the connection and transfer control to the winsock control?

so far, i have only been able to open a comm port and issue an ATDT command to my modem. Here i have two problems. First, the computer on the line i am dialing to doesn't know that it is being called. then, when i installed Dial-up server on Win98 to monitor for calls to the modem. This allowed for a connection to be established, but then my winsock control didn't work.

i am an intermediate VB programmer, and i want to develop some experience in client/server apps. But i have to tell ya, this problem is just busting my balls. i don't know what to do.

please help,
Shaheeb R