Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 04-24-2001, 08:42 AM
Rhino Rhino is offline
Member
 
Join Date: Jan 2001
Posts: 71
Default Text or File ??

Using the socket components how can I identify what has been sent... Either plain text or a file block?? Or should I just use 2 different ports? If I do use 2 different ports is it possible that information could arrive in a different order to what how it was sent??

Please help
Reply With Quote
  #2  
Old 04-24-2001, 11:05 PM
Verence Verence is offline
Senior Member
 
Join Date: Feb 2001
Posts: 435
Default RE: Text or File ??

IMHO it's impossible because even a part of an EXE file could look like plain text. So, if you can control what you send transmit a header before the data and put in this header everything you need to know about the data: eg. type, size, time, sequential number etc.
And yes, AFAIK it is possible that the order changes if you use 2 ports - timing problem.

HTH )
Verence
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 11:29 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.