Click here to Skip to main content
15,891,708 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PArameter Type problem Pin
ns20-Sep-02 10:17
ns20-Sep-02 10:17 
GeneralVisual C++.NET Problem Pin
valikac20-Sep-02 9:01
valikac20-Sep-02 9:01 
GeneralRe: Visual C++.NET Problem Pin
Joaquín M López Muñoz20-Sep-02 9:48
Joaquín M López Muñoz20-Sep-02 9:48 
GeneralRe: Visual C++.NET Problem Pin
valikac20-Sep-02 9:50
valikac20-Sep-02 9:50 
GeneralRe: Visual C++.NET Problem Pin
Mike Nordell20-Sep-02 10:10
Mike Nordell20-Sep-02 10:10 
GeneralVoice chat Pin
fahadmunir3320-Sep-02 8:28
fahadmunir3320-Sep-02 8:28 
GeneralRe: Voice chat Pin
Mike Nordell21-Sep-02 11:08
Mike Nordell21-Sep-02 11:08 
GeneralQuestion about using CSocket writing a server Pin
nachilau20-Sep-02 8:23
nachilau20-Sep-02 8:23 
Hello,

I wonder what is the usage of using Bind method after creating a CSocket in the server. I get an error message when I Bind the socket, however, if I ignore the error, I can still receive the message come from the client. So, what is the usage of using Bind method in server side?

Actually, my code is something like this,

rt = cs.Create(1000, SOCK_STREAM, "127.0.0.1");
if (rt == 0)
Print_Error();
rt = cs.Bind(1000, "127.0.0.1");
if (rt == 0)
Print_Error();

When the program is going to bind the socket, it return error message 10022, which the documentation told me that is "invalid argument" exception. Can someone told me what is my problem?

Thanks!

NachiFrown | :(

GeneralRe: Question about using CSocket writing a server Pin
Joaquín M López Muñoz20-Sep-02 10:07
Joaquín M López Muñoz20-Sep-02 10:07 
GeneralRe: Question about using CSocket writing a server Pin
nachilau20-Sep-02 11:16
nachilau20-Sep-02 11:16 
GeneralCArchive and memory mapped files Pin
Ted Christiansen20-Sep-02 8:22
Ted Christiansen20-Sep-02 8:22 
GeneralPostMessage Problem Pin
jmkhael20-Sep-02 8:12
jmkhael20-Sep-02 8:12 
GeneralRe: PostMessage Problem Pin
Nick Parker20-Sep-02 9:23
protectorNick Parker20-Sep-02 9:23 
Generalcreate directory Pin
brianwelsch20-Sep-02 8:08
brianwelsch20-Sep-02 8:08 
GeneralRe: create directory Pin
jmkhael20-Sep-02 8:13
jmkhael20-Sep-02 8:13 
GeneralRe: create directory Pin
brianwelsch20-Sep-02 8:20
brianwelsch20-Sep-02 8:20 
GeneralShared memory whitin DLL Pin
20-Sep-02 7:47
suss20-Sep-02 7:47 
GeneralRe: Shared memory whitin DLL Pin
Todd Smith20-Sep-02 7:55
Todd Smith20-Sep-02 7:55 
GeneralRe: Shared memory whitin DLL Pin
axa20-Sep-02 9:11
axa20-Sep-02 9:11 
GeneralRe: Shared memory whitin DLL Pin
Mike Nordell23-Sep-02 18:46
Mike Nordell23-Sep-02 18:46 
GeneralCprogressCtrl derived class Pin
ns20-Sep-02 7:49
ns20-Sep-02 7:49 
GeneralRe: CprogressCtrl derived class Pin
Blaster20-Sep-02 8:04
Blaster20-Sep-02 8:04 
GeneralRe: CprogressCtrl derived class Pin
ns20-Sep-02 8:11
ns20-Sep-02 8:11 
GeneralRe: CprogressCtrl derived class Pin
Blaster20-Sep-02 8:18
Blaster20-Sep-02 8:18 
GeneralRe: CprogressCtrl derived class Pin
ns20-Sep-02 8:23
ns20-Sep-02 8:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.