Click here to Skip to main content
15,898,538 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# window app to listen multiple port simultaneously.. Pin
Luc Pattyn2-Dec-10 5:59
sitebuilderLuc Pattyn2-Dec-10 5:59 
GeneralRe: C# window app to listen multiple port simultaneously.. Pin
ayandelhi2-Dec-10 6:09
ayandelhi2-Dec-10 6:09 
GeneralRe: C# window app to listen multiple port simultaneously.. Pin
Luc Pattyn2-Dec-10 6:35
sitebuilderLuc Pattyn2-Dec-10 6:35 
GeneralRe: C# window app to listen multiple port simultaneously.. Pin
ayandelhi2-Dec-10 6:44
ayandelhi2-Dec-10 6:44 
GeneralRe: C# window app to listen multiple port simultaneously.. Pin
DaveyM692-Dec-10 9:37
professionalDaveyM692-Dec-10 9:37 
QuestionSocket programming Pin
Tichaona J1-Dec-10 23:29
Tichaona J1-Dec-10 23:29 
AnswerRe: Socket programming Pin
Pete O'Hanlon1-Dec-10 23:47
mvePete O'Hanlon1-Dec-10 23:47 
AnswerRe: Socket programming Pin
Luc Pattyn2-Dec-10 0:04
sitebuilderLuc Pattyn2-Dec-10 0:04 
Tichaona J wrote:
Encoding.ASCII.GetBytes(Pname + Pdob + PnhsNo + Paddress + PmedicalCon + pcallOutDetails);


you can't just concatenate some strings and get away with it, there is no way to separate them again. What if they represent numbers? is 12345 the result of 1 and 2345? or 12 and 345? or...

What you could do is this:
- define a little class that holds the variables (either as strings or, better, as their actual type);
- add [Serializable] attribute;
- make one instance and fill the values from the Form (or whatever your source of information is);
- use XmlSerialize class to turn that object into one XML string;
- transmit that string;
- use XmlSerialize class again to decode the XML string and recreate an instance of your object.

I have an example here[^].

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralRe: Socket programming Pin
musefan2-Dec-10 0:12
musefan2-Dec-10 0:12 
GeneralRe: Socket programming Pin
Tichaona J2-Dec-10 1:28
Tichaona J2-Dec-10 1:28 
GeneralRe: Socket programming Pin
musefan2-Dec-10 1:34
musefan2-Dec-10 1:34 
GeneralRe: Socket programming Pin
Luc Pattyn2-Dec-10 2:20
sitebuilderLuc Pattyn2-Dec-10 2:20 
AnswerRe: Socket programming Pin
Tichaona J2-Dec-10 4:08
Tichaona J2-Dec-10 4:08 
QuestionConversion of a object into a particular datetime format Pin
Varun Sareen1-Dec-10 17:43
Varun Sareen1-Dec-10 17:43 
AnswerRe: Conversion of a object into a particular datetime format PinPopular
OriginalGriff1-Dec-10 21:38
mveOriginalGriff1-Dec-10 21:38 
QuestionCan not deserialize [modified] Pin
Jacob D Dixon1-Dec-10 11:39
Jacob D Dixon1-Dec-10 11:39 
AnswerRe: Can not deserialize Pin
jschell1-Dec-10 12:16
jschell1-Dec-10 12:16 
AnswerRe: Can not deserialize Pin
Luc Pattyn1-Dec-10 12:17
sitebuilderLuc Pattyn1-Dec-10 12:17 
GeneralRe: Can not deserialize Pin
Jacob D Dixon1-Dec-10 12:30
Jacob D Dixon1-Dec-10 12:30 
AnswerRe: Can not deserialize Pin
Luc Pattyn1-Dec-10 13:06
sitebuilderLuc Pattyn1-Dec-10 13:06 
GeneralRe: Can not deserialize Pin
Jacob D Dixon1-Dec-10 14:48
Jacob D Dixon1-Dec-10 14:48 
AnswerRe: Can not deserialize Pin
Luc Pattyn1-Dec-10 15:02
sitebuilderLuc Pattyn1-Dec-10 15:02 
GeneralRe: Can not deserialize Pin
Jacob D Dixon1-Dec-10 16:21
Jacob D Dixon1-Dec-10 16:21 
GeneralRe: Can not deserialize Pin
Luc Pattyn1-Dec-10 16:46
sitebuilderLuc Pattyn1-Dec-10 16:46 
GeneralRe: Can not deserialize [modified] Pin
Jacob D Dixon1-Dec-10 17:11
Jacob D Dixon1-Dec-10 17:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.