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.