473,398 Members | 2,404 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,398 software developers and data experts.

TCP sockets IOCONTROL in .net2.0?

Hey guys

I recently saw that in .net 2.0 there is a new IOCONTROL you can use.

One of the features it has is a DataToRead and a OOBDataToRead.

I am presently having problems it seems in knowing when i have received all
my data over my socket and this looks on the surface as the answer to my
prayers. Only problem is it returns weird results.

Using DataToRead i got 5012 yet i only sent 2000 or so bytes.

Using OOBDataToRead i got a 1 no matter what i did

And Socket.Available gave me the 5012 as well.

I do this in my code:

bytesRead = theSockId.thisSocket.EndReceive (asyn); //end receive on socket
passed in and return totalbytes

To finish the receive where theSockId is a class i made that holds a socket
and a buffer. Can someone please give me a simple example of using this
IOCONTROL on a socket so that i shows sending and receiving data accurately?
Thanks. Alink to a good tutorial would help also as i can't find any. MSDN
only shows a basic example which only covers how to get the data from the
available property.

Mar 30 '06 #1
0 1134

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

Similar topics

6
by: Michel Hardy | last post by:
Hello, does anyone know how to use the Socket.IOControl method to set the keep alive message? I already have the SIO_KEEPALIVE_VALS value and structure, but how do I pass it to the IOControl...
1
by: Fade BS via DotNetMonster.com | last post by:
i have been trying to implement QualityOfServive capabilities onto a c client-Server project i have been working on, and i have reached a dead end. it seems that in order to implement QOS...
4
by: hvj | last post by:
I need to run a .NET1.1 program in a .NET2.0 CLR. The .NET1.1 exe starts correctly in .NET2.0. Now I want to debug in Visual Studio 2005. But when I try to open the .NET1.1 project, Visual Studio...
4
by: dreamamit2001 | last post by:
Hi, I would like to know the ASP.NET2.0's(Controls, Menubar, Validations, Object Data Souce Controls, Treeview Control) compatibility with IE5.0 browser on Mac OS. If I don't use Client side...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
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.