Results 1 to 4 of 4
Thread: WinSocket VC++!
Hybrid View
-
18th September 2005 09:36 #1
WinSocket VC++!
windows - VypressChat. ... UDP broadcast 8167. send .. .. ...255 8167?
:
MySocket CAsyncSocket, CReceiveDlg 2 edit CString m_msg1;m_msg2; 8167 ...Code:void MySocket::OnReceive(int nErrorCode) { CString Message, ipaddr = "0.0.0.0"; CReceiveDlg dlg; unsigned portn=8168; char Buffer[512]; CAsyncSocket::OnReceive(nErrorCode); if (nErrorCode) { Message.Format("OnReceive nErrorCode: %i", nErrorCode); AfxMessageBox(Message); return; } dlg.m_msg1 = ReceiveFrom(Buffer, sizeof Buffer, ipaddr,portn); dlg.m_msg2 = Buffer; dlg.UpdateData(FALSE); }
..... ... buffer ? ...?
-
20th September 2005 09:54 #2~~~~ My the force be with you ~~~~DFI LP UT P45-T2RS, E8400 E0, Xigmatek S1284, Corsair TWIN2X4096-8500C5D 4x2GB, Sapphire HD 5870 1GB Vapor-X, CHIEFTEC 650W,HP LP2275W, CM CENTURION 534+
-
20th September 2005 23:34 #3Registered User
Join Date: Aug:2003
Location:
Posts: 175
? : CAsyncSocket::Bind(). CAsyncSocket ( WinSocks ), UDP , . 0.0.0.0.
Getting Started with Winsock - Winsock, .
: OnReceive . ... .
-
22nd September 2005 22:57 #4
... ... ...
" ... ." ... ... ... ...




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in