|
-
Jun 6th, 2001, 06:05 PM
#1
Thread Starter
Lively Member
winsock2.h
Hi, i'm using msvb 6 with MFC to make a winsock application but i'm having a few problems learning the winsock2.h. This is the so far steps...i'm just learning this class.
void CDimDlg::OnButton1()
{
WSADATA info;
WSAPROTOCOL_INFO protocol_info;
WSAStartup(MAKEWORD(1,1), &info);
WSASocket(AF_INET, SOCK_STREAM, PF_INET, protocol_info, NULL, NULL);
}
i can't figure out the problem with the WSASocket functions....how do i fix this and what do i do next to start listening on the socket? do i have to do a bind()?
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
|