Click here to Skip to main content
15,887,333 members
Home / Discussions / C#
   

C#

 
GeneralRe: Issues with adding a web reference using WSDL.exe Pin
Ravi Bhavnani12-Jul-09 18:27
professionalRavi Bhavnani12-Jul-09 18:27 
QuestionEntity Framework: Create new Object (when relation exists) PinPopular
TheShihan12-Jul-09 12:58
TheShihan12-Jul-09 12:58 
QuestionWIA with Vista... Pin
Jacob Dixon12-Jul-09 10:08
Jacob Dixon12-Jul-09 10:08 
AnswerRe: WIA with Vista... Pin
Jacob Dixon12-Jul-09 14:45
Jacob Dixon12-Jul-09 14:45 
AnswerRe: WIA with Vista... Pin
Jacob Dixon12-Jul-09 15:28
Jacob Dixon12-Jul-09 15:28 
GeneralRe: WIA with Vista... Pin
Sean Devoy26-Aug-09 14:44
Sean Devoy26-Aug-09 14:44 
GeneralRe: WIA with Vista... Pin
Jacob Dixon26-Aug-09 15:12
Jacob Dixon26-Aug-09 15:12 
QuestionImprove Speed of send message from server to all Clients Pin
Vu Nam Son12-Jul-09 7:34
Vu Nam Son12-Jul-09 7:34 
I write new application server/client. I use TcpClient. When my server is listening and allow many computers connect. Example : My server have 50 computers client connected. I have problem when I want to send 1 message to all clients, I must use FOR/NEXT therefore It cost 5 seconds or more to send 1 message to 50 Computers client. Now I want to improve speed of send message, Please give me advice.

Please see code below

//Send Admin Message
public static void sendAdminMessage(string sMessage)
{

//ArrayList LIST_CLIENT contain all connections of client
if (LIST_CLIENT.Count > 0)
{
Object []arr = LIST_CLIENT.ToArray();
for (int i = 0; i < arr.Length; i++)
{
try
{
MyClient client = (MyClient)arr[i];
send(client.TcpClient, sMessage);
}
catch(Exception e) {
Console.WriteLine(e.Message);
}
}
}
}
AnswerRe: Improve Speed of send message from server to all Clients Pin
Christian Graus12-Jul-09 7:36
protectorChristian Graus12-Jul-09 7:36 
AnswerRe: Improve Speed of send message from server to all Clients Pin
Behrooz_cs12-Jul-09 9:27
Behrooz_cs12-Jul-09 9:27 
QuestionHow can I intercept audio output? Pin
blametom12-Jul-09 7:01
blametom12-Jul-09 7:01 
AnswerRe: How can I intercept audio output? Pin
Christian Graus12-Jul-09 7:35
protectorChristian Graus12-Jul-09 7:35 
AnswerRe: How can I intercept audio output? Pin
Richard Andrew x6412-Jul-09 17:32
professionalRichard Andrew x6412-Jul-09 17:32 
GeneralRe: How can I intercept audio output? Pin
blametom13-Jul-09 6:19
blametom13-Jul-09 6:19 
QuestionRe: How can I intercept audio output? Pin
blametom13-Jul-09 8:27
blametom13-Jul-09 8:27 
NewsRe: How can I intercept audio output? Pin
blametom14-Jul-09 2:26
blametom14-Jul-09 2:26 
Questionconvert ascii bytearray to string Pin
samy10012-Jul-09 3:50
samy10012-Jul-09 3:50 
AnswerRe: convert ascii bytearray to string Pin
Eslam Afifi12-Jul-09 3:55
Eslam Afifi12-Jul-09 3:55 
GeneralRe: convert ascii bytearray to string Pin
samy10012-Jul-09 4:42
samy10012-Jul-09 4:42 
GeneralRe: convert ascii bytearray to string Pin
PIEBALDconsult12-Jul-09 4:50
mvePIEBALDconsult12-Jul-09 4:50 
GeneralRe: convert ascii bytearray to string Pin
Eslam Afifi12-Jul-09 5:32
Eslam Afifi12-Jul-09 5:32 
AnswerRe: convert ascii bytearray to string Pin
Natza Mitzi12-Jul-09 18:27
Natza Mitzi12-Jul-09 18:27 
AnswerRe: convert ascii bytearray to string Pin
OriginalGriff12-Jul-09 4:39
mveOriginalGriff12-Jul-09 4:39 
GeneralRe: convert ascii bytearray to string Pin
harold aptroot12-Jul-09 5:02
harold aptroot12-Jul-09 5:02 
GeneralRe: convert ascii bytearray to string Pin
OriginalGriff12-Jul-09 5:17
mveOriginalGriff12-Jul-09 5:17 

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.