473,387 Members | 1,517 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,387 software developers and data experts.

the Socket Class

Please inform me if microsoft has a better group to post this genre of
question on, but since I am working in vb.net, this was my best choice.

I am writing a program that can send UDP packets. Obviously, the
UDPClient is virtually worthless since it has zilch control over the
sender port number. Anyway, I finally perfected writing out my own UDP
header which includes the checksum, length, source port, and
destination port. However, I cannot seem to initialize the Socket
class so that I can send the same packets consistently. I tested my
application on(let's say) SystemA and it worked fine. I verified this
using Ethereal. I tested the same exact .exe on SystemB and the Socket
class, for some reason, added a UDP header to my packet. This is
obviously bad. I am concerned that the Socket does not act the same
from system to system... i.e. not reliable. What sort of things do I
need to do to guarantee that it will work the same from computer to
computer?
So, in short, I need to know what parameters to instantiate the Socket
class with so that I am provided with just a IP header so that I can
tack on my UDP and data. Also, it can't be just any IP header: it must
be one that is setup for UDP (0x11 or 17).

Do you catch my drift?

Thanks,
Brett

P.S. Please do not suggest that I try using something other than UDP.
Please do not suggest that I try to use a third party software( such as
Indy ). Thanks very much!!!

Mar 18 '06 #1
1 1265

br***********@hotmail.com wrote:
Please inform me if microsoft has a better group to post this genre of
question on, but since I am working in vb.net, this was my best choice.


I'd try reposting this in microsoft.public.dotnet.framework.

--
Larry Lard
Replies to group please

Mar 20 '06 #2

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

Similar topics

0
by: Dan Rice | last post by:
Hello, Im trying to get the following working but it doesn't seem to receive anything. I have got the UdpClient class to receive data but unreliably and was told to use the Socket class...
7
by: groleo | last post by:
Hi. I've searched a lot on google, but no one seems to develop a socket class for c++? I've found a lot of classes that works only on Windows. The thing is that I need a BSD socket library. I...
3
by: HABJAN ®iga | last post by:
Is there a way to be notifyed (callback, event,...) when the connection of socket was closed... The WinSock activex in vb6 had event ondisconnect... I get exception when i try to send some data,...
3
by: notregister | last post by:
Hi, how do i use socket class to send data to a device which i have that IP address and Port number e.g 169.254.192.155 RemotePort: 9100 or any IP address that i want? Pls advise Thanks
4
by: PELLETIER Thomas | last post by:
Hello. Is there a Socket class for c++ ? Thanks.
1
by: ssherm01 | last post by:
I'm using MS VS C++ .NET. I've written a multicast test utility that can send IGMP packets for a user specified group address. As well, it can send and receive UDP packets for a specified...
5
by: Bruce | last post by:
Hello I am building a C# app that creates anywhere from 10 to 100 connections to a specified server and sends 1000s of TCP requests and processes the responses. (it is a stress tool) I planned...
2
by: Piotrekk | last post by:
Hi I have a question related to Socket class. What are the advantages / disadvantages of using Socket class comparing to TcpClient and HttpWebRequest Regards Piotr Kołodziej
2
by: kodart | last post by:
Introduction Performance is the main concern to most server application developers. That’s why many of them anticipate using .NET platform to develop high performance server application regardless...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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
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...

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.