Just a basic question after I didn't see any examples on the web other
than the "None" enum.
Is this just a way of sending "hints" to server/client, or is there
another more valuable use to this?
I'm speaking of the following:
socket.BeginRec eive(data, 0, 255, SocketFlags.Non e, new
AsyncCallback(R eceiveCallback) , data);
Thanks for the help! 3 3492
Hi,
"Arronax" <jc*****@gmail. com> wrote in message
news:11******** *************@g 43g2000cwa.goog legroups.com... Just a basic question after I didn't see any examples on the web other than the "None" enum.
Is this just a way of sending "hints" to server/client, or is there another more valuable use to this?
I'm speaking of the following: socket.BeginRec eive(data, 0, 255, SocketFlags.Non e, new AsyncCallback(R eceiveCallback) , data);
Neither I have, IMO they are not widely used in a regular environment.
If you are curious about it, take a look at its equivalent in the unmanaged
world ( in the API especially ) and google it
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Hello, Arronax!
A> Is this just a way of sending "hints" to server/client, or is there
A> another more valuable use to this?
A> I'm speaking of the following:
A> socket.BeginRec eive(data, 0, 255, SocketFlags.Non e, new
A> AsyncCallback(R eceiveCallback) , data);
These flags give 'hints' to TCP/IP protocol stack how to process & send your data. While setting specific SocketFlag,
specific header flags in the IP, TCP or UDP packets will be set.
You can see more details in appropriate protocol RFCs
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Thanks guys, I'll take a look at those resources! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: raza |
last post by:
Hi,
I have been programmin in C# for quite some time now and recently got
into sockets programming in C# though i have done it in C++ on
windows/linux . I have an interesting problem at hand .
I am porting a C++ tunnel library into C# . It has 2 functions
WriteOut: I make a header and send it then send the actual data to the
server and it calls Write function
|
by: Michael Evanchik |
last post by:
im trying to do a get on a http server and keep appending the return data to
a string and then i even tried an array of strings. But very odd things are
happening. I am completely missing the header but i would get the second
packet twice. Its obviously my code, or im just never gonna get c# working.
please help here is my code.
command button
--------------------------
ManualResetEvent wait = new ManualResetEvent(false);...
|
by: Hasan O |
last post by:
hi , I have a problem with socket.send
mesajlar = Encoding.ASCII.GetBytes("UGIR");
socketResultValue = socket.Send(mesajlar,0,mesajlar.Length,
SocketFlags.None);
socketResultValue =
socket.Receive(mesajlar,0,mesajlar.Length,SocketFlags.None);
|
by: Buc |
last post by:
I have a small program that accepts a DGRAM UDP text packet (+-250 bytes
port 9001) and puts it in a list box. The network receive part acts BUGGY.
It acts the same way on more than one machine. It acted random.. SO..I used
the debugger, the callback fires and the first line of code breaks (the
receivefrom) and then the sub exits without executing the remaining lines of
code ?? The next packet may do the same thing OR the sub may finish the...
|
by: mottebelke |
last post by:
I want to print a bitmap directly to a network printer using a socket.
To do this I use PCL codes to set the printer in the right mode and
print the image.
Note that this code is used on the Compact Framework, so there is no
PrintDocument or even a driver I can use.
try
{
| |
by: J C |
last post by:
Hi,
I'm using UDPClient to make a simple DNS server. I notice that
intermittently and unpredictibly I get:
Unhandled Exception: System.Net.Sockets.SocketException: An existing
connection
was forcibly closed by the remote host
at System.Net.Sockets.Socket.ReceiveFrom(Byte buffer, Int32 offset,
Int32 s
|
by: shahla.saeed |
last post by:
hi,
plzz check my code and let me know where the problem is
lying...becuase whenever i try to tansfer the file of 573KB(mp3) it
just tranfer few Kb of file(Somtimes 5.2Kb,somtimes 32Kb..every time i
run the program).....but when i watch the transfering of bytes by
debuging it.(RED dot on while(nfs.CanRead) )..it shows that complete
bytes are transfered.(in my case i-e 573Kb)....i am unable to
understand whats going wrong in my program....
|
by: larspeter |
last post by:
Hi all.
I have a problem with TcpClient ... I am conneting to a server with
TcpClient and returning the answer through a webservice.
It actully all works fine. BUT if I make a lot of (re)connection
(hitting the submit button) then I start to recieve a an error:
IOException:System.IO.IOException: Der kunne ikke læses data fra
transportforbindelsen (LPF: could not read data from the transport
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |