Results 1 to 2 of 2

Thread: about win32 programming

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Location
    Ernakulam,Kerala,India
    Posts
    1

    about win32 programming

    about win32 programming. i have been trying to connect to a website using the standard socket , connect and recv calls. but although i am getting the connection and sending the data, i am not able to receive anything, why is it due to ? i have specified the port for the socket as 80 but the local port (as is seen from my log in the personal firewall) is said to be 1527, is it due that ? after waiting for a lot of time, the connection is said to close gracefully. please help me out in solving this problem.

  2. #2
    amac
    Guest
    have specified the port for the socket as 80 but the local port (as is seen from my log in the personal firewall) is said to be 1527
    When you open a socket it has to have a port associated with it... Regardless whether or not it is setup to listen for incoming connections... So when you tell it to port 80... the socket is created and seeing how you are connecting to something it picks a non-standard port number... usually over 1000... This way the remote machine can send data back to you...

    So the 1527... is right.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width