![]() |
| ||
| Help on TCP Winsock Hi all i am a newbie in C++, i am currently doing my FYP and i need some help on it. I am using visual C++ version 6.0. Firstly, i have 2 machines A ( the client ) and B ( the server ), A is supposed to send a signal to B. The problem is i want to combine or link 2 programs, which is a TCP Winsock Server and a record program together in B. The record program has a code which says OnButtonRecord() , whereby when the program is executed, the user have to click the button himself to start the record function. How do i get the TCP Winsock Server to trigger the record program to start auto-record? ( When Winsock Server receives a signal from A, it tells the record program to start recording , without having the user to press the button manually). Can i remove the OnButtonRecord and replace it with some other codes? Also how do i set a static ip address in the code because the Winsock Server requires the user to type an ip address first, i would like to make it a default ip. Forgive me if it sounds confusing, i'm not really sure how i should explain it, any help would be appreciated, thanks a lot. The code for the Winsock TCP server: #include "stdafx.h" |
| ||
| Re: Help on TCP Winsock Are you combining client and server into just one program ? Or are they still two separate programs that are executed on the same machine ? >>Also how do i set a static ip address in the code because the Winsock Server requires the user to type an ip address first, i would like to make it a default ip. Just set the variable used for the manual entry to be "127.0.0.1", which is always the local machine. |
| ||
| Re: Help on TCP Winsock Quote:
The reason why i would i like to set a static ip is because i do not know how to execute them at the same time, if i can set a static ip address within the server code, then there won't be a need to prompt the user for an ip address, hence allowing the Server and record program to run at the same time. |
| All times are GMT -4. The time now is 12:21 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC