Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > SmallSockets OnConnection

SmallSockets OnConnection
Thread Tools
Junior Member
Join Date: Jul 2002
Location: Australia
Status: Offline
Reply With Quote
Aug 25, 2002, 03:40 AM
 
Hi all, Is there any way using smallsockets to do something like this:


if ([socket accecptConnection]) {
NSLog(@"Someone is trying to connect");
}

meaning... if someone tries to connect then do something..
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Aug 27, 2002, 11:45 PM
 
To do this requires implementing a run loop in the actual socket class; making them fully OO, in other words, unlike the current SmallSockets implementation which is really just a wrapper. I've made some modifications to SS in the past to do this - you can download them here, Socket.h and Socket.m.
[vash:~] banana% killall killall
Terminated
     
Syphor  (op)
Junior Member
Join Date: Jul 2002
Location: Australia
Status: Offline
Reply With Quote
Aug 28, 2002, 04:07 AM
 
I'm now using multithreads...
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:12 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2