Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 11, 2008, 02:54 AM   #1
chidambaram
macrumors member
 
Join Date: Mar 2008
how to open and close a port in XCode using carbon?

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........
chidambaram is offline   0 Reply With Quote
Old Mar 11, 2008, 07:15 AM   #2
Cromulent
macrumors 603
 
Cromulent's Avatar
 
Join Date: Oct 2006
Location: The Land of Hope and Glory
Post some code otherwise no one knows what you are doing.
__________________
Neural Advance - Mac OS X, UNIX and Windows Development
Last.fm Profile | Extreme Metal Reviews
MP 4x 2.66Ghz Xeons / 6GB RAM / 640GB + 500GB + 750GB + 1TB HDDs / ATI Radeon 4870 / iPad 3
Cromulent is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Should I always keep Apps open or close them? 2012Tony2012 OS X Mavericks (10.9) 3 Apr 16, 2014 05:06 AM
Is there a quick way to close all open apps? melburstein iOS 7 90 Mar 7, 2014 01:56 AM
/Is it possible to port forward to my laptop to test if a port is open infobleep OS X 10.8 Mountain Lion 5 Aug 11, 2013 03:15 PM
lid open/close firmness J.L.Photography MacBook Pro 1 Aug 27, 2012 01:48 PM
SAFARI not Restoring Open Windows Close/Open cecoleman OS X 10.8 Mountain Lion 5 Jul 11, 2012 12:36 AM

Forum Jump

All times are GMT -5. The time now is 09:49 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC