sockets async?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi, this should b a simple question...does the socket class use async? like
in vb u have to tell it to use async, but in c++ i cant find either, its just
"listen" or "connect"...is it async or sync?
 
iwdu15 said:
hi, this should b a simple question...does the socket class use async?
like
in vb u have to tell it to use async, but in c++ i cant find either, its
just
"listen" or "connect"...is it async or sync?

..Net classes are what they are and work the same way whether the caller is
written VB.Net, C# or C++/CLI.

If you are not talking about .Net's socket class then to which one do you
refer? Is it MFC's? If so, check the docs for CSocket and CAsyncSocket.

Regards,
Will
 
so much for a simple question...i was talking about the System::Net::Socket
class

i made a program in VB using sockets and the socket object had the "Begin
Listen"(async) method and the "Listen"(sync) methods for example, whereas in
C++ the same object just has "Listen"....am i missing something here?
 
iwdu15 said:
so much for a simple question...i was talking about the
System::Net::Socket
class

i made a program in VB using sockets and the socket object had the "Begin
Listen"(async) method and the "Listen"(sync) methods for example, whereas
in
C++ the same object just has "Listen"....am i missing something here?

Hmm. I'm not near my PC where I have the MSDN library installed, but the
online library has these methods in the Socket class whose names start with
Begin...

BeginAccept
BeginConnect
BeginReceive
BeginReceiveFrom
BeginSend
BeginSendTo

I see no BeginListen. Intellisense doesn't show one either. Could you point
me to the docs for the VB method that you are using?

Regards,
Will
 
sry about that, that was a typo on my part, i didnt mean "begin listen",
sorry for the inconvienience...ends up my Visual Studio was being a little
weird...might b bc i dont have the minium requirements...but sorry for the
inconvienience
 
Back
Top