Click here to Skip to main content
15,915,057 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Socket programming in C [modified] Pin
rp_suman5-Apr-08 15:10
rp_suman5-Apr-08 15:10 
GeneralRe: Socket programming in C Pin
ADTC#5-Apr-08 15:39
ADTC#5-Apr-08 15:39 
QuestionRe: Socket programming in C Pin
rp_suman5-Apr-08 16:50
rp_suman5-Apr-08 16:50 
GeneralRe: Socket programming in C Pin
ADTC#5-Apr-08 16:53
ADTC#5-Apr-08 16:53 
GeneralRe: Socket programming in C [modified] Pin
rp_suman5-Apr-08 17:03
rp_suman5-Apr-08 17:03 
GeneralRe: Socket programming in C Pin
CPallini6-Apr-08 1:36
mveCPallini6-Apr-08 1:36 
GeneralRe: Socket programming in C Pin
Eytukan5-Apr-08 18:03
Eytukan5-Apr-08 18:03 
AnswerRe: Socket programming in C Pin
Himanshu Joshi5-Apr-08 18:35
Himanshu Joshi5-Apr-08 18:35 
ADTC# wrote:
The basic client server works fine


If you are able to do basic client server then I am pretty much sure that you would be able to do basic file and string IO. So following basic things you can do.

1. Have your IP address and port number in a standard text file
The format can be like this
IP ADDRESS  : 127.0.0.1
PORT NUMBER : 1234


2. Read the file line by line using standard file IO and store them in two strings
3. Split the strings by ":" token. Now you have IP address and port number in two of the four strings.

Hope this helps. Rose | [Rose]

"Give a man a fire and he's warm for a day, set a man on fire and he won't feel cold for the rest of his life."

Questioncapturing keyboard inputs Pin
Adnan Merter5-Apr-08 13:09
Adnan Merter5-Apr-08 13:09 
GeneralRe: capturing keyboard inputs Pin
Mark Salsbery5-Apr-08 13:18
Mark Salsbery5-Apr-08 13:18 
GeneralRe: capturing keyboard inputs Pin
Adnan Merter5-Apr-08 13:21
Adnan Merter5-Apr-08 13:21 
GeneralA bug made by "connectioin string" (ODBC) Pin
Joseph Marzbani5-Apr-08 9:15
Joseph Marzbani5-Apr-08 9:15 
GeneralRe: A bug made by "connectioin string" (ODBC) Pin
Mark Salsbery5-Apr-08 11:36
Mark Salsbery5-Apr-08 11:36 
QuestionHow to read the values inside a txt file into an array? Pin
johndoelee5-Apr-08 5:09
johndoelee5-Apr-08 5:09 
GeneralRe: How to read the values inside a txt file into an array? Pin
Eytukan5-Apr-08 7:55
Eytukan5-Apr-08 7:55 
GeneralRe: How to read the values inside a txt file into an array? [modified] Pin
Joseph Marzbani5-Apr-08 9:02
Joseph Marzbani5-Apr-08 9:02 
GeneralRe: How to read the values inside a txt file into an array? Pin
CPallini5-Apr-08 10:33
mveCPallini5-Apr-08 10:33 
GeneralRe: How to read the values inside a txt file into an array? Pin
Joseph Marzbani5-Apr-08 16:25
Joseph Marzbani5-Apr-08 16:25 
GeneralRe: How to read the values inside a txt file into an array? Pin
CPallini5-Apr-08 21:41
mveCPallini5-Apr-08 21:41 
GeneralRe: How to read the values inside a txt file into an array? Pin
Eytukan5-Apr-08 17:53
Eytukan5-Apr-08 17:53 
GeneralRe: How to read the values inside a txt file into an array? Pin
CPallini5-Apr-08 21:39
mveCPallini5-Apr-08 21:39 
GeneralRe: How to read the values inside a txt file into an array? Pin
Eytukan5-Apr-08 21:49
Eytukan5-Apr-08 21:49 
GeneralRe: How to read the values inside a txt file into an array? Pin
CPallini5-Apr-08 22:20
mveCPallini5-Apr-08 22:20 
GeneralRe: How to read the values inside a txt file into an array? Pin
Eytukan5-Apr-08 22:43
Eytukan5-Apr-08 22:43 
GeneralRe: How to read the values inside a txt file into an array? [modified] Pin
Rajesh R Subramanian5-Apr-08 22:20
professionalRajesh R Subramanian5-Apr-08 22: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.