Click here to Skip to main content
16,007,885 members
Home / Discussions / C#
   

C#

 
GeneralListView Item Selection Pin
takkung19-Jul-05 18:05
takkung19-Jul-05 18:05 
GeneralRe: ListView Item Selection Pin
Nick Parker19-Jul-05 18:16
protectorNick Parker19-Jul-05 18:16 
GeneralRe: ListView Item Selection Pin
takkung19-Jul-05 21:43
takkung19-Jul-05 21:43 
GeneralRe: ListView Item Selection Pin
takkung19-Jul-05 22:19
takkung19-Jul-05 22:19 
GeneralRe: ListView Item Selection Pin
Nick Parker20-Jul-05 1:50
protectorNick Parker20-Jul-05 1:50 
GeneralFlicker-free Refesh Pin
Justin Clayden19-Jul-05 16:56
Justin Clayden19-Jul-05 16:56 
GeneralRe: Flicker-free Refesh Pin
Alomgir Miah19-Jul-05 17:36
Alomgir Miah19-Jul-05 17:36 
Questionnetworking questions ? Pin
snouto19-Jul-05 15:51
snouto19-Jul-05 15:51 
iam developing server \client applications and i ask if this code can work on the real internet network or not
here is the code for my file transmission server listening thread.
<br />
Socket ServSock = new Socket(AddressFamily.Internetwork,Sokettype.Stream,ProtocolType.Tcp);<br />
IpHostEntry iphost = Dns.Resolve(Dns.GetHostName());<br />
IpAddress thisip = iphost.AddressList[0];<br />
IpEndPoint myendpoint = New IpEndPoint(thisip,(Int32)7291));<br />
ServSock.Bind(myendpoint);<br />
ServSock.Listen(-1);<br />

This Code will get the local ip address of the computer it is running on and connected to the internet and listens for any Clients' Socket Requests and with small other portions of codes it will accepts the client connection in this part there is the main server that will be running on any webserver like any dedicated webserver so the above code will be run when one user A wants to send a file to the other user B the main server on the webserver will send to B the ip address of the networkstream of A so B will begin to initialize an ipendpoint for this client A on B's Client Application as follows.
<br />
Socket clientSock = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);<br />
IpHostEntry remoteiphost = Dns.Resolve("A's Ipaddress that sent by the main server");<br />
IpAddress remoteA = remoteiphost.AddressList[0];<br />
IpEndPoint Aendpoint = new IpEndPoint(remoteA,(Int32)7291);<br />
clientSock.Connect(Aendpoint);<br />
if(clientSock.Connected)<br />
{<br />
//here is the code for getting the file in binary format<br />
}<br />

The Question is:
----------------
Can the server and client be connected to each other even if these users using dialup connection or both using Dsl or one differs than the other in the type of connection .....? Cause i tested it on my local pc and it works and i tested it over real network in too many computers connected together in internal network as in cybers but can be connected also over the internet ?

Please Help me .

Miss With The Best And Die Like The Rest
GeneralEvents Pin
noneformenoneforme19-Jul-05 15:08
noneformenoneforme19-Jul-05 15:08 
GeneralRe: Events Pin
Christian Graus19-Jul-05 15:17
protectorChristian Graus19-Jul-05 15:17 
GeneralRe: Events Pin
Nick Parker19-Jul-05 15:23
protectorNick Parker19-Jul-05 15:23 
GeneralRe: Events Pin
Christian Graus21-Aug-05 15:29
protectorChristian Graus21-Aug-05 15:29 
GeneralVisual Studio style options dialog Pin
Rob Tomson19-Jul-05 13:27
Rob Tomson19-Jul-05 13:27 
GeneralRe: Visual Studio style options dialog Pin
Luis Alonso Ramos19-Jul-05 14:57
Luis Alonso Ramos19-Jul-05 14:57 
GeneralRe: Visual Studio style options dialog Pin
Nick Parker19-Jul-05 15:25
protectorNick Parker19-Jul-05 15:25 
QuestionRemoting - should I keep remote objects alive? Pin
Judah Gabriel Himango19-Jul-05 11:21
sponsorJudah Gabriel Himango19-Jul-05 11:21 
AnswerRe: Remoting - should I keep remote objects alive? Pin
KaptinKrunch19-Jul-05 13:07
KaptinKrunch19-Jul-05 13:07 
GeneralRe: Remoting - should I keep remote objects alive? Pin
Judah Gabriel Himango20-Jul-05 4:14
sponsorJudah Gabriel Himango20-Jul-05 4:14 
QuestionUpdate the UI? Pin
Luis Alonso Ramos19-Jul-05 10:34
Luis Alonso Ramos19-Jul-05 10:34 
AnswerRe: Update the UI? Pin
KaptinKrunch19-Jul-05 13:01
KaptinKrunch19-Jul-05 13:01 
GeneralRe: Update the UI? Pin
Luis Alonso Ramos19-Jul-05 14:57
Luis Alonso Ramos19-Jul-05 14:57 
AnswerRe: Update the UI? Pin
Nick Parker19-Jul-05 15:29
protectorNick Parker19-Jul-05 15:29 
GeneralRe: Update the UI? Pin
Luis Alonso Ramos19-Jul-05 17:31
Luis Alonso Ramos19-Jul-05 17:31 
GeneralRe: Update the UI? Pin
Nick Parker19-Jul-05 18:13
protectorNick Parker19-Jul-05 18:13 
AnswerRe: Update the UI? Pin
S. Senthil Kumar19-Jul-05 19:21
S. Senthil Kumar19-Jul-05 19:21 

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.