Login  
Search All Forums
Dart Home | PowerTCP Sockets for .NET | Custom Development Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
AuthorForum: PowerTCP Sockets for .NET (Secure and Standard)
Topic: UDP send Structure
pierfish

From: Marigliano, Italy
Posts: 2
Member Since: 12/18/03
posted December 18, 2003 4:41 PM

I Have a structure in vb.net like

public structure
 PersonalCode as string
 Phone as string
 Age as string
end structure

I have the HEX value in each part and i have to send the entire structure via UDP to a remote host
Any suggest ?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted December 18, 2003 4:53 PM

You'd have to write a function that serializes the structure, then send it, then deserialize it at the other end. If the strings were of fixed length it would be easier.

pierfish

From: Marigliano, Italy
Posts: 2
Member Since: 12/18/03
posted December 18, 2003 5:18 PM

in vb.net I can't use

 Phone as string*8
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted December 19, 2003 4:00 PM

Hi,
I'm sorry; I'm not sure what you are saying.

The remote host will dictate how you must send the data. If it is expecting it in a certain way, you will have to construct the data to reflect that.

If, on the other hand, you have control over how the server receives and handles the data, you can construct it in any manner you choose.

-ken
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX