473,407 Members | 2,629 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

sockets async?

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
Nov 17 '05 #1
4 1242
"iwdu15" <iw****@discussions.microsoft.com> wrote in message
news:94**********************************@microsof t.com...
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
Nov 17 '05 #2
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
Nov 17 '05 #3
"iwdu15" <iw****@discussions.microsoft.com> wrote in message
news:2D**********************************@microsof t.com...
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
Nov 17 '05 #4
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
--
-iwdu15
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ben | last post by:
I've written a fair amount of sockets code using the Winsock2 API, but I am having some trouble converting to the .Net Sockets API, specifically asynchronous sockets. What I have is a form that is...
3
by: David | last post by:
Hi, Ive been trying to work this out for the past 2 days now and im not getting anywhere fast. The problem i have is that i am using Asynchronous sockets to create a Socket Client library....
3
by: Frane Roje | last post by:
I'm trying to connect to a server using non-blocking sockets with the method Socket.BeginConnect(). Since I don't know the Ip address of my server I can't get the IPEndPpoint parameter for the...
1
by: Trevor | last post by:
Does the async. sockets implementation in .NET use IO Completion Ports (IOCP) internally or would I have to use P/Invoke to use IOCP in a C# async. socket server?
2
by: Ronodev.Sen | last post by:
the way my program needs to go is -- 1) open a socket and listen on it 2) moment a client connects to the socket - process some data (by sending it to another machine), get the result and send...
11
by: Steven | last post by:
Hi, I need to write an application using sockets. I have a server and about 10 clients "speaking" at the same time with the server, so i guess i need to use asynchronous sockets. But the server...
5
by: Dan Ritchie | last post by:
I've got a client/server app that I used to send large amounts of data via UDP to the client. We use it in various scenarios, one of which includes rendering a media file on the client as it is...
4
by: Greg Young | last post by:
Ok so I think everyone can agree that creating buffers on the fly in an async socket server is bad ... there is alot of literature available on the problems this will cause with the heap. I am...
4
by: nyhetsgrupper | last post by:
Hi, I've written a async server app. This app start by connecting to a client and then send some data (BeginSend). When the data is sent, the server is starting to listen for incomming data....
4
by: nyhetsgrupper | last post by:
I'm writing a server application connection to multiple clients using sockets. I want one socket for each client, and the comunication needs to be async. I could use the async sockets methods...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.