Click here to Skip to main content
15,902,447 members
Home / Discussions / C#
   

C#

 
GeneralRe: setup and deployment with MDB files Pin
Heath Stewart31-Oct-03 5:28
protectorHeath Stewart31-Oct-03 5:28 
GeneralRe: setup and deployment with MDB files Pin
31-Oct-03 6:31
suss31-Oct-03 6:31 
GeneralRe: setup and deployment with MDB files Pin
Member 44190931-Oct-03 6:52
Member 44190931-Oct-03 6:52 
Generalwindows service and SQL related problem Pin
rishikt31-Oct-03 3:50
rishikt31-Oct-03 3:50 
GeneralRe: windows service and SQL related problem Pin
Heath Stewart31-Oct-03 4:42
protectorHeath Stewart31-Oct-03 4:42 
GeneralRe: windows service and SQL related problem Pin
Terry Denham31-Oct-03 5:25
Terry Denham31-Oct-03 5:25 
GeneralRe: windows service and SQL related problem Pin
Blake Coverett31-Oct-03 7:36
Blake Coverett31-Oct-03 7:36 
Generalmulti thread question Pin
rod termaat31-Oct-03 3:38
rod termaat31-Oct-03 3:38 
I have written a socket server that accepts a connection over a single port. It now reads data into a string and then creates a hipaa compliant file out of the data. That data is then sent to the mainframe and a response file is created. I then reverse the process and write the data back over the port to the sender. Right now the process is single threaded. Where I get the data, create file, wait for response file, send data. I can do all this in about 3-4 seconds.

I have a few questions that I hope someone can answer...

I need to address multiple request that are sent. How do I thread this process so that multiple transactions (data files) can be dealt with. I am concerned about the sender sending me a data feed that contains multiple data files like this
|data1|data2|data3|. How can I know where one piece of data starts and stops. Can I use a delimitor, the data file always ends in a ~ ?

Can I send and receive over 1 socket at the same time?

Should I leave the connection open all the time, or close it with each transmission? The client will be connected over a frame relay.

Any resources? I have found several examples where the connections are threaded, but I will only have 1 connection.
I really need to get my brain around the model for this process and can not seem to do it...


rod
GeneralRe: multi thread question Pin
Heath Stewart31-Oct-03 4:35
protectorHeath Stewart31-Oct-03 4:35 
GeneralRe: multi thread question Pin
Blake Coverett31-Oct-03 8:04
Blake Coverett31-Oct-03 8:04 
GeneralCOM Interop - objects cause NullReferenceExceptions at random Pin
Corinna John31-Oct-03 2:39
Corinna John31-Oct-03 2:39 
GeneralRe: COM Interop - objects cause NullReferenceExceptions at random Pin
Heath Stewart31-Oct-03 5:22
protectorHeath Stewart31-Oct-03 5:22 
Generalnoob winform question Pin
R. Thomas31-Oct-03 1:37
R. Thomas31-Oct-03 1:37 
GeneralRe: noob winform question Pin
Daniel Turini31-Oct-03 2:20
Daniel Turini31-Oct-03 2:20 
GeneralRe: noob winform question Pin
R. Thomas31-Oct-03 4:08
R. Thomas31-Oct-03 4:08 
General(null) values in datagrid Pin
misiek31-Oct-03 0:30
misiek31-Oct-03 0:30 
GeneralRe: (null) values in datagrid Pin
Daniel Turini31-Oct-03 2:18
Daniel Turini31-Oct-03 2:18 
GeneralRe: (null) values in datagrid Pin
misiek31-Oct-03 2:59
misiek31-Oct-03 2:59 
GeneralRe: (null) values in datagrid Pin
Braulio Dez31-Oct-03 2:59
Braulio Dez31-Oct-03 2:59 
GeneralCrystal Export to Excel Pin
akorolev1030-Oct-03 20:17
akorolev1030-Oct-03 20:17 
GeneralWritng objects to file Pin
Itanium30-Oct-03 18:34
Itanium30-Oct-03 18:34 
GeneralRe: Writng objects to file Pin
MKlucher30-Oct-03 19:08
MKlucher30-Oct-03 19:08 
GeneralRe: Writing objects to file Pin
Itanium30-Oct-03 19:43
Itanium30-Oct-03 19:43 
GeneralRe: Writng objects to file Pin
Corinna John30-Oct-03 19:50
Corinna John30-Oct-03 19:50 
GeneralRe: Writng objects to file Pin
Itanium30-Oct-03 21:44
Itanium30-Oct-03 21:44 

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.