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

C#

 
GeneralRe: SHAPEFILES IN C# Pin
Keith Barrow2-Feb-10 0:28
professionalKeith Barrow2-Feb-10 0:28 
AnswerRe: SHAPEFILES IN C# Pin
Dave Kreskowiak2-Feb-10 2:24
mveDave Kreskowiak2-Feb-10 2:24 
QuestionC# global hotkeys in Linux Pin
Armin Paffrath1-Feb-10 23:38
Armin Paffrath1-Feb-10 23:38 
AnswerRe: C# global hotkeys in Linux Pin
freakyit2-Feb-10 2:11
freakyit2-Feb-10 2:11 
GeneralRe: C# global hotkeys in Linux Pin
Armin Paffrath2-Feb-10 2:22
Armin Paffrath2-Feb-10 2:22 
GeneralRe: C# global hotkeys in Linux Pin
freakyit2-Feb-10 23:55
freakyit2-Feb-10 23:55 
GeneralRe: C# global hotkeys in Linux Pin
Armin Paffrath3-Feb-10 23:01
Armin Paffrath3-Feb-10 23:01 
QuestionCreate a excelfile in C# - save with version Pin
Mschauder1-Feb-10 23:17
Mschauder1-Feb-10 23:17 
AnswerRe: Create a excelfile in C# Pin
Richard MacCutchan1-Feb-10 23:42
mveRichard MacCutchan1-Feb-10 23:42 
QuestionRe: Create a excelfile in C# Pin
Mschauder2-Feb-10 1:27
Mschauder2-Feb-10 1:27 
AnswerRe: Create a excelfile in C# Pin
Mschauder2-Feb-10 1:58
Mschauder2-Feb-10 1:58 
QuestionMessage Removed Pin
1-Feb-10 23:11
amasterisout1-Feb-10 23:11 
AnswerRe: Text of ToolStripItem derived objects won't appear when added to a ContextMenuStrip Pin
freakyit2-Feb-10 2:14
freakyit2-Feb-10 2:14 
GeneralRe: Text of ToolStripItem derived objects won't appear when added to a ContextMenuStrip Pin
amasterisout2-Feb-10 6:28
amasterisout2-Feb-10 6:28 
Questionmulticolumn listview Pin
Member 5903101-Feb-10 22:48
Member 5903101-Feb-10 22:48 
AnswerRe: multicolumn listview Pin
Richard MacCutchan1-Feb-10 23:45
mveRichard MacCutchan1-Feb-10 23:45 
QuestionOuter border - Tablelayoutpanel Pin
anoopkamboj1-Feb-10 21:16
anoopkamboj1-Feb-10 21:16 
AnswerRe: Outer border - Tablelayoutpanel Pin
OriginalGriff1-Feb-10 23:15
mveOriginalGriff1-Feb-10 23:15 
QuestionProblem with TAPI [modified] Pin
saeidfarahi1-Feb-10 19:53
saeidfarahi1-Feb-10 19:53 
QuestionC# Server running in mono on linux Pin
justwithit1-Feb-10 19:45
justwithit1-Feb-10 19:45 
AnswerRe: C# Server running in mono on linux Pin
Migounette2-Feb-10 7:30
Migounette2-Feb-10 7:30 
GeneralRe: C# Server running in mono on linux Pin
Migounette2-Feb-10 7:31
Migounette2-Feb-10 7:31 
GeneralRe: C# Server running in mono on linux Pin
justwithit2-Feb-10 11:00
justwithit2-Feb-10 11:00 
So what you're saying is that even though I make sure to read 4 bytes off the socket they may not be the correct four bytes so when I cast them it converts into a monstrous integer? The server manages flash clients and everytime someone does a postback or otherwise the flash reloads and then reconnects. I wonder if it has todo with old data sitting on the socket from the previous connection. But I do create a new socket everytime they connect, but maybe it has todo with mono's socket pool code. The Sync Byte, how would I go about about implementing something like that and what is it fixing exactly? Is it implemented something like this?

//Client Pseudocode
Socket.Send(0x80+Size+Data);

//Server Pseudocode
while(true)
{
   if(Socket.Receive(0,1)==0x80)//Read first byte and compare it to 0x80
   {
       //We now know we are at beginning of good data
       size = BitConverter.ToInt32(Socket.Receive(0, sizeof(int)));
       break;
   }
}

I'm sorry for all the thinking out loud and questions, this error has caused me tons of headache.
Am I thinking in the right direction with that?
GeneralRe: C# Server running in mono on linux Pin
Migounette4-Feb-10 6:42
Migounette4-Feb-10 6:42 
QuestionControl Message Box Pin
satsumatable1-Feb-10 19:19
satsumatable1-Feb-10 19:19 

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.