Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Find the documentation oF MSPastry Library in MSDN? Pin
Dave Kreskowiak18-Dec-09 4:10
mveDave Kreskowiak18-Dec-09 4:10 
QuestionThreading Question Pin
Harvey Saayman17-Dec-09 23:11
Harvey Saayman17-Dec-09 23:11 
AnswerRe: Threading Question Pin
#realJSOP17-Dec-09 23:40
mve#realJSOP17-Dec-09 23:40 
GeneralRe: Threading Question Pin
Harvey Saayman18-Dec-09 0:24
Harvey Saayman18-Dec-09 0:24 
AnswerRe: Threading Question Pin
Pete O'Hanlon18-Dec-09 0:14
mvePete O'Hanlon18-Dec-09 0:14 
GeneralRe: Threading Question Pin
Harvey Saayman18-Dec-09 2:32
Harvey Saayman18-Dec-09 2:32 
GeneralRe: Threading Question Pin
Luc Pattyn18-Dec-09 5:23
sitebuilderLuc Pattyn18-Dec-09 5:23 
GeneralRe: Threading Question Pin
Harvey Saayman18-Dec-09 5:56
Harvey Saayman18-Dec-09 5:56 
Hey Luc

Thanks for your comments...

Luc Pattyn wrote:
2.
Your code is silently converting incoming bytes into chars into strings. That may be fine, however in general TCP/IP transports binary data. It is up to the application layers to decide what that data represents. You probably are aware of all this, but I wanted to say it explicitly just in case.


Yup, I'm just playing around with some proof of concept code before I build the real deal Smile | :)



Me and my stepbrother just discussed this and I think I may have an idea.



The receiving of data happens in the .net ThreadPool as you mentioned and then sends the result back via a callback.

At this point I'll shove the entire piece of data into a collection of some type that resides in my client object. I'll also signal the main processing thread of this event.

This thread will be responsible for checking if a work item for the specific client has been started(in which case it will be ignored cause the thread in progress will process it) or not. If not it will queue the work item in the thread pool.

These work items will then strip the packets from the clients raw data and trigger events in my code that i can handle appropriately.

What you think? Smile | :) do-able?

Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL

you.suck = (you.Occupation == jobTitles.Programmer && you.Passion != Programming)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111

GeneralRe: Threading Question Pin
Luc Pattyn18-Dec-09 6:19
sitebuilderLuc Pattyn18-Dec-09 6:19 
GeneralRe: Threading Question Pin
Harvey Saayman18-Dec-09 7:49
Harvey Saayman18-Dec-09 7:49 
Question[Message Deleted] Pin
thungphan17-Dec-09 20:53
thungphan17-Dec-09 20:53 
AnswerMessage Closed Pin
17-Dec-09 21:25
stancrm17-Dec-09 21:25 
GeneralRe: convert int to byte array using shift operator Pin
thungphan17-Dec-09 21:42
thungphan17-Dec-09 21:42 
AnswerRe: convert int to byte array using shift operator Pin
harold aptroot17-Dec-09 21:52
harold aptroot17-Dec-09 21:52 
QuestionRuntime ToFront toBack? Pin
dennis_max2717-Dec-09 20:29
dennis_max2717-Dec-09 20:29 
AnswerRe: Runtime ToFront toBack? Pin
Saksida Bojan17-Dec-09 20:37
Saksida Bojan17-Dec-09 20:37 
GeneralRe: Runtime ToFront toBack? Pin
dennis_max2717-Dec-09 20:47
dennis_max2717-Dec-09 20:47 
GeneralRe: Runtime ToFront toBack? Pin
Saksida Bojan17-Dec-09 20:50
Saksida Bojan17-Dec-09 20:50 
GeneralRe: Runtime ToFront toBack? Pin
dennis_max2717-Dec-09 20:54
dennis_max2717-Dec-09 20:54 
GeneralRe: Runtime ToFront toBack? Pin
Saksida Bojan17-Dec-09 21:00
Saksida Bojan17-Dec-09 21:00 
GeneralRe: Runtime ToFront toBack? Pin
dennis_max2717-Dec-09 21:00
dennis_max2717-Dec-09 21:00 
AnswerRe: Runtime ToFront toBack? Pin
dennis_max273-Jan-10 22:37
dennis_max273-Jan-10 22:37 
Questionparsing javascript in realtime Pin
Haim Nachum17-Dec-09 19:39
Haim Nachum17-Dec-09 19:39 
QuestionDeploying Windows Application(C#) with SQL Server(2005) Pin
samrat.net17-Dec-09 19:18
samrat.net17-Dec-09 19:18 
AnswerRe: Deploying Windows Application(C#) with SQL Server(2005) Pin
Mycroft Holmes17-Dec-09 23:26
professionalMycroft Holmes17-Dec-09 23:26 

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.