Issue about Sockets
-
WELL ! I JUST WANNA ASK ABOUT CREATING A SCOKET THROUGH CSocket CLASS I TIRED THIS CODE (BELOW) BUT IT DIDNT WORKED OUT! CODE: CSocket *c = new CSocket(); c->Create(port) ; it doesnt create a socket . I EXPECT TO GET THE CODED PROCEDURE OF CREATING A SOCKET! IF ANY ONE CAN HELP ME :confused:
-
WELL ! I JUST WANNA ASK ABOUT CREATING A SCOKET THROUGH CSocket CLASS I TIRED THIS CODE (BELOW) BUT IT DIDNT WORKED OUT! CODE: CSocket *c = new CSocket(); c->Create(port) ; it doesnt create a socket . I EXPECT TO GET THE CODED PROCEDURE OF CREATING A SOCKET! IF ANY ONE CAN HELP ME :confused:
Ok In MC++ you can use TcpClient() TcpListener() and Socket() Look at this samples by this nice guy called Albert Pascual http://www.codeproject.com/managedcpp/howtoproxy.asp and http://www.codeproject.com/managedcpp/get\_the\_ip\_out\_tcpclient.asp where you can use something like this to listen in a socket : TcpListener * pTcpListener; TcpListener = new TcpListener(80); TcpListener->Start(); TcpClient * pTcpClient; pTcpClient = m_TcpListener->AcceptTcpClient(); Al
-
Ok In MC++ you can use TcpClient() TcpListener() and Socket() Look at this samples by this nice guy called Albert Pascual http://www.codeproject.com/managedcpp/howtoproxy.asp and http://www.codeproject.com/managedcpp/get\_the\_ip\_out\_tcpclient.asp where you can use something like this to listen in a socket : TcpListener * pTcpListener; TcpListener = new TcpListener(80); TcpListener->Start(); TcpClient * pTcpClient; pTcpClient = m_TcpListener->AcceptTcpClient(); Al