在服务器端CSocket类定义了一个成员m_Listen,要建立连接
m_Listen.Create(4000,SOCK_STREAM,FD_ACCEPT|FD_READ);
m_Listen.Listen(5);
为什么编译时会提示 error C2664: Create : cannot convert parameter 3 from const int to const char *
很急啊!
BOOL Create(
UINT nSocketPort = 0,
int nSocketType = SOCK_STREAM,
LPCTSTR lpszSocketAddress = NULL
);
中lpszSocketAddress
A pointer to a string containing the network address of the connected socket, a dotted number such as "128.56.22.8".