Click here to Skip to main content
15,904,023 members
Home / Discussions / C#
   

C#

 
GeneralRe: Convert C++ to C# Pin
Fired.Fish.Gmail13-Apr-09 5:05
Fired.Fish.Gmail13-Apr-09 5:05 
GeneralRe: Convert C++ to C# Pin
Colin Angus Mackay13-Apr-09 5:12
Colin Angus Mackay13-Apr-09 5:12 
GeneralRe: Convert C++ to C# Pin
Dave Doknjas14-Apr-09 4:14
Dave Doknjas14-Apr-09 4:14 
GeneralRe: Convert C++ to C# Pin
Colin Angus Mackay14-Apr-09 4:17
Colin Angus Mackay14-Apr-09 4:17 
GeneralRe: Convert C++ to C# Pin
Dave Doknjas14-Apr-09 4:28
Dave Doknjas14-Apr-09 4:28 
Questiondata from excel is in the dataset but not displyed in the gridview Pin
kapilsahrawat12-Apr-09 19:45
kapilsahrawat12-Apr-09 19:45 
AnswerRe: data from excel is in the dataset but not displyed in the gridview Pin
Sun Rays12-Apr-09 22:08
Sun Rays12-Apr-09 22:08 
QuestionListening port for many number of clients Pin
yesu prakash12-Apr-09 19:41
yesu prakash12-Apr-09 19:41 
Hi,
I have a listening port and it should handle many number of clients at a time.

When i try with 10-25 clients in LAN, its work fine. My doubt is that will it be sucess when it upload to the web, where many number of users acess the server from diffrent part of the world.

Below code is used to listen as server. Please verify the code for multipe number of client, what will be the approximate limit of clients can connect?


strHostName = Dns.GetHostName();
IPHostEntry ipEntry = Dns.GetHostByName( strHostName );
aryLocalAddr = ipEntry.AddressList;

Socket s_listen = new Socket(AddressFamily.InterNetwork,SocketType.Stream, ProtocolType.Tcp);
s_listen.Bind(new IPEndPoint(aryLocalAddr[0], 400));
s_listen.Blocking = true;
s_listen.Listen(-1);
// Setup a callback to be notified of connection requests
s_listen.BeginAccept(new AsyncCallback(app.OnConnectRequest), s_listen);

-----
public void OnConnectRequest( IAsyncResult ar )
{
Socket lis = (Socket)ar.AsyncState;
NewCon( lis.EndAccept( ar ) );
lis.BeginAccept( new AsyncCallback( OnConnectRequest ), lis );
}


thankyou
YPKI
AnswerRe: Listening port for many number of clients Pin
Colin Angus Mackay12-Apr-09 23:31
Colin Angus Mackay12-Apr-09 23:31 
Questionhi please help me Pin
Denver Thomas12-Apr-09 19:10
Denver Thomas12-Apr-09 19:10 
AnswerRe: hi please help me Pin
King Julien12-Apr-09 20:01
King Julien12-Apr-09 20:01 
AnswerRe: hi please help me Pin
Abhijit Jana12-Apr-09 20:03
professionalAbhijit Jana12-Apr-09 20:03 
GeneralRe: hi please help me Pin
Denver Thomas12-Apr-09 20:19
Denver Thomas12-Apr-09 20:19 
QuestionDownload files from a folder with password [modified] Pin
VisualLive12-Apr-09 18:59
VisualLive12-Apr-09 18:59 
QuestionRich Text Box Change Programatically Pin
TD Hall12-Apr-09 18:40
TD Hall12-Apr-09 18:40 
AnswerRe: Rich Text Box Change Programatically Pin
King Julien12-Apr-09 20:09
King Julien12-Apr-09 20:09 
QuestionHow to call begin edit on key press Pin
hirenkshah12-Apr-09 18:38
hirenkshah12-Apr-09 18:38 
QuestionHow to call begin edit on key press in TreeListView? Pin
hirenkshah12-Apr-09 18:37
hirenkshah12-Apr-09 18:37 
QuestionResume upload Pin
a.hamidy12-Apr-09 18:26
a.hamidy12-Apr-09 18:26 
QuestionDesign and Display Issue Pin
sajid.salim.khan12-Apr-09 18:22
sajid.salim.khan12-Apr-09 18:22 
AnswerRe: Design and Display Issue Pin
Abhijit Jana12-Apr-09 20:01
professionalAbhijit Jana12-Apr-09 20:01 
QuestionRe: Design and Display Issue Pin
King Julien12-Apr-09 20:11
King Julien12-Apr-09 20:11 
QuestionLimit of thread Pin
yesu prakash12-Apr-09 18:06
yesu prakash12-Apr-09 18:06 
AnswerRe: Limit of thread Pin
Anubhava Dimri12-Apr-09 18:39
Anubhava Dimri12-Apr-09 18:39 
AnswerRe: Limit of thread Pin
Dave Kreskowiak12-Apr-09 18:51
mveDave Kreskowiak12-Apr-09 18:51 

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.