Click here to Skip to main content
15,867,594 members
Home / Discussions / C#
   

C#

 
QuestionRe: socket programing Pin
ky_rerun12-Mar-09 6:56
ky_rerun12-Mar-09 6:56 
AnswerRe: socket programing Pin
behzadcp12-Mar-09 7:47
professionalbehzadcp12-Mar-09 7:47 
QuestionXML Pin
mrithula812-Mar-09 4:50
mrithula812-Mar-09 4:50 
AnswerRe: XML [modified] Pin
harold aptroot12-Mar-09 5:03
harold aptroot12-Mar-09 5:03 
GeneralRe: XML Pin
mrithula813-Mar-09 0:16
mrithula813-Mar-09 0:16 
GeneralRe: XML Pin
mrithula813-Mar-09 5:40
mrithula813-Mar-09 5:40 
GeneralRe: XML Pin
harold aptroot13-Mar-09 5:50
harold aptroot13-Mar-09 5:50 
GeneralRe: XML Pin
mrithula813-Mar-09 6:57
mrithula813-Mar-09 6:57 
Hi I retrieved port and ip using
    for (int i = 0; i < xmlnode.Count; i++)
    {
        st = xmlnode[i].FirstChild.InnerText;
        st1 = xmlnode[i].LastChild.InnerText;
    }

ipadd = Convert.ToInt32(st);
ports = Convert.ToInt32(st1);
IPEndPoint ipep = new IPEndPoint(ipadd, ports);//ipadd=127.0.0.1 port=10001

It gives me an exception"Input String was not in a correct format" but the server(.exe) opens up.In the server code i have used
IPEndPoint ipep = new IPEndPoint(ipadd, ports);
to open the connection with the client.For this opened server how should i change the following statement on the client
IPEndPoint ipep = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 10001);

How should i specify the port and ip on the client?i.e for the server opened on port 10001 and ip=127.0.0.1 (obtained from xml) how should i modify the client?Please give me your suggestions
GeneralRe: XML Pin
harold aptroot13-Mar-09 7:33
harold aptroot13-Mar-09 7:33 
AnswerRe: XML Pin
Michael Bookatz12-Mar-09 5:17
Michael Bookatz12-Mar-09 5:17 
Questionrecieving error in this program Pin
Nettai12-Mar-09 4:45
Nettai12-Mar-09 4:45 
AnswerRe: recieving error in this program Pin
Teuz12-Mar-09 5:01
Teuz12-Mar-09 5:01 
GeneralRe: recieving error in this program Pin
Nettai12-Mar-09 5:14
Nettai12-Mar-09 5:14 
GeneralRe: recieving error in this program Pin
Teuz12-Mar-09 5:18
Teuz12-Mar-09 5:18 
GeneralRe: recieving error in this program Pin
#realJSOP12-Mar-09 5:41
mve#realJSOP12-Mar-09 5:41 
GeneralRe: recieving error in this program Pin
Luc Pattyn12-Mar-09 6:12
sitebuilderLuc Pattyn12-Mar-09 6:12 
GeneralRe: recieving error in this program Pin
fred_12-Mar-09 8:03
fred_12-Mar-09 8:03 
Questionconnecting to the Deleted Objects container in AD Pin
lane0p212-Mar-09 4:43
lane0p212-Mar-09 4:43 
Questiondatabase in sql server 2000 using c# Pin
mariamkhaqan12-Mar-09 4:37
mariamkhaqan12-Mar-09 4:37 
AnswerRe: database in sql server 2000 using c# Pin
Teuz12-Mar-09 5:05
Teuz12-Mar-09 5:05 
GeneralRe: database in sql server 2000 using c# Pin
mariamkhaqan13-Mar-09 3:01
mariamkhaqan13-Mar-09 3:01 
AnswerRe: database in sql server 2000 using c# Pin
Michael Bookatz12-Mar-09 5:23
Michael Bookatz12-Mar-09 5:23 
GeneralRe: database in sql server 2000 using c# Pin
mariamkhaqan13-Mar-09 3:00
mariamkhaqan13-Mar-09 3:00 
QuestionSimple question about controls Pin
bouli12-Mar-09 4:14
bouli12-Mar-09 4:14 
AnswerRe: Simple question about controls Pin
RyanMorris12-Mar-09 4:20
RyanMorris12-Mar-09 4:20 

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.