|
-
May 24th, 2000, 11:21 PM
#1
Thread Starter
Junior Member
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
-
May 25th, 2000, 02:45 AM
#2
Hyperactive Member
You are getting messed up on what you want to do.
You can either do a direct modem to modem transfer or communicate via TCP/IP(internet)
-
Jun 11th, 2000, 08:54 PM
#3
New Member
When you connect a some communication program on both PC-a (or whatever) you'll see that after connection you can establish a two-way (full-duplex) chat instantly just tapping on the keyboard. That means that you have to use
MsComm.Output="H4"
and you will see it on the other size, and consequently you can get it by
ChessMove$ = MsComm.Input
All you need to do is to configure Port,InputBuffer length, open the Port, make a call (as you already did-I hope ) and to putt received data into a string. Then you can manipulate with it.
You don't need WinSock control in this case.
Hope this help.
Vele
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|