• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
closing sockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

closing sockets


  • Subject: closing sockets
  • From: "Yuri Lew" <email@hidden>
  • Date: Mon, 20 Nov 2006 08:38:29 +0000

Hi all

I play a lot of games and am writing an application to aid me in my gameplay. One of the features i want to incorporate into this application is to be able to 'kick' other players. I know that this is possible on pc's as i have seen programms that do it, however you have to be the 'host' in order to be able to kick people. The way im thinking of doing it is to close() or shutdown() the socket that person is connected to. I have tried calling both close() and shutdown() on the file descriptor however both functions return -1. I think that there might be a problem with the fact that I didnt create those sockets and am just getting them from a netstat -n.

I know very little about network programming, so please tell me if im completely mistaken in doing this, or if there is a better solution to my problem.

thanks,
           -- yuri

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: closing sockets
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Re: Your details [:.VIRUS.:]
  • Next by Date: Re: Re: is there a memory leak?
  • Previous by thread: Your information [:.VIRUS.:]
  • Next by thread: Re: closing sockets
  • Index(es):
    • Date
    • Thread