how to open and close a port in XCode using carbon?

Discussion in 'Mac Programming' started by chidambaram, Mar 11, 2008.

  1. chidambaram macrumors member

    Mar 9, 2008
    Hi all,

    I am working a Carbon Application in XCode.

    I want to send a message from one system to another system.

    I created the socket, binded to a port and send the message.

    The message is sent to another machine. When i tried to send next message it shows error in binding. If i change the port number for next message it is working.

    So how can i close a port ? So that i use the same port number for all messages.

    Help me with some code.....

    Thanks in advance and urgent plz........
  2. Cromulent macrumors 603


    Oct 2, 2006
    The Land of Hope and Glory
    Post some code otherwise no one knows what you are doing.

Share This Page