Click here to Skip to main content
15,887,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: socket programming using vc++ Pin
rahuljin17-Jun-09 3:04
rahuljin17-Jun-09 3:04 
GeneralRe: socket programming using vc++ Pin
Garth J Lancaster17-Jun-09 3:08
professionalGarth J Lancaster17-Jun-09 3:08 
GeneralRe: socket programming using vc++ Pin
rahuljin17-Jun-09 5:59
rahuljin17-Jun-09 5:59 
GeneralRe: socket programming using vc++ Pin
led mike17-Jun-09 6:11
led mike17-Jun-09 6:11 
GeneralRe: socket programming using vc++ Pin
rahuljin17-Jun-09 7:57
rahuljin17-Jun-09 7:57 
GeneralRe: socket programming using vc++ Pin
Garth J Lancaster17-Jun-09 12:34
professionalGarth J Lancaster17-Jun-09 12:34 
GeneralRe: socket programming using vc++ Pin
rahuljin18-Jun-09 0:12
rahuljin18-Jun-09 0:12 
GeneralRe: socket programming using vc++ Pin
Garth J Lancaster18-Jun-09 0:52
professionalGarth J Lancaster18-Jun-09 0:52 
rahuljin wrote:
do u mean that i should write another program which listen to this port ??


yes - the whole point of connecting to something is something must be waiting/listening on the other end ! .. maybe you could use something like http://www.aprelium.com/abyssws/[^]

rahuljin wrote:
also, if i want to send some information using the send() function, can i use the same port or i have to use another port for that ?


if you are in the connected state, you have a channel open and you can send to and receive from it - depending on whats on the other end - the simplest test of your code is whats known as an echo server - it reads what you send it and sends you back the same info - see here for an example - I dont get why you're asking about another port

http://www.paulgriffiths.net/program/c/echoserv.php[^]

and here

http://www.csc.villanova.edu/~mdamian/Sockets/TcpSockets.htm[^]

I hate to say this, but it sounds like you're a little out of your depth - this sort of material is covered in lots of network programming books, and there's plenty out there on the net

Maybe you should spent some time doing a bit more research
GeneralRe: socket programming using vc++ Pin
rahuljin18-Jun-09 1:14
rahuljin18-Jun-09 1:14 
AnswerRe: socket programming using vc++ Pin
norish17-Jun-09 2:40
norish17-Jun-09 2:40 
GeneralRe: socket programming using vc++ Pin
rahuljin17-Jun-09 3:17
rahuljin17-Jun-09 3:17 
GeneralRe: socket programming using vc++ Pin
rahuljin24-Jun-09 1:39
rahuljin24-Jun-09 1:39 
GeneralRe: socket programming using vc++ Pin
norish24-Jun-09 6:34
norish24-Jun-09 6:34 
GeneralRe: socket programming using vc++ Pin
rahuljin24-Jun-09 20:34
rahuljin24-Jun-09 20:34 
GeneralRe: socket programming using vc++ Pin
norish25-Jun-09 3:04
norish25-Jun-09 3:04 
GeneralRe: socket programming using vc++ Pin
rahuljin26-Jun-09 20:53
rahuljin26-Jun-09 20:53 
GeneralRe: socket programming using vc++ Pin
norish27-Jun-09 18:30
norish27-Jun-09 18:30 
Questionwin32 windows exploler. Pin
birajendu17-Jun-09 0:53
birajendu17-Jun-09 0:53 
AnswerRe: win32 windows exploler. Pin
_AnsHUMAN_ 17-Jun-09 1:29
_AnsHUMAN_ 17-Jun-09 1:29 
QuestionRe: win32 windows exploler. Pin
David Crow17-Jun-09 3:13
David Crow17-Jun-09 3:13 
AnswerRe: win32 windows exploler. Pin
«_Superman_»17-Jun-09 16:39
professional«_Superman_»17-Jun-09 16:39 
GeneralRe: win32 windows exploler. Pin
birajendu17-Jun-09 18:28
birajendu17-Jun-09 18:28 
GeneralRe: win32 windows exploler. Pin
chirag_chauhan17-Jun-09 22:54
chirag_chauhan17-Jun-09 22:54 
GeneralRe: win32 windows exploler. Pin
birajendu18-Jun-09 17:11
birajendu18-Jun-09 17:11 
QuestionMouse rotating knob message Pin
Nikesh Jagtap17-Jun-09 0:42
Nikesh Jagtap17-Jun-09 0:42 

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.