Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made method name less ambiguous, fixed a comment.

  • Loading branch information...
commit cc68aac618850c2735104db1bf01dd564cc06bab 1 parent 12f9217
@uliwitness authored
Showing with 6 additions and 6 deletions.
  1. +3 −3 Classes/ULINetSocket.h
  2. +3 −3 Classes/ULINetSocket.m
View
6 Classes/ULINetSocket.h
@@ -89,11 +89,11 @@
@param inMaxPendingConnections the maximum number of pending connections that should be allowed before connections start being refused. */
-(BOOL) listenOnPort: (UInt16)inPort maxPendingConnections: (int)inMaxPendingConnections;
-/*! Starts the socket listening for connections on the specified path. This method will limit pending connections to 5.
+/*! Starts the socket listening for connections on the specified path. This method will limit pending connections to the specified amount.
@result YES if the socket is successfully put into a listening state, NO otherwise.
@param path is the name of the socket.
@param inMaxPendingConnections the maximum number of pending connections that should be allowed before connections start being refused. */
--(BOOL) listenOnSocket: (NSString *)path maxPendingConnections: (int)inMaxPendingConnections;
+-(BOOL) listenOnLocalSocketPath: (NSString *)path maxPendingConnections: (int)inMaxPendingConnections;
/*! @methodgroup Connecting */
/*! Attempts to connect the socket to the specified host on the specified port.
@@ -112,7 +112,7 @@
/*! Attempts to connect the socket on the specified path.
@result YES if the socket is successfully put into a connecting state, NO otherwise.
@param path the path of the socket. */
--(BOOL) connectToSocket: (NSString *)path;
+-(BOOL) connectToLocalSocketPath: (NSString *)path;
/*! @methodgroup Peeking */
/*! Allows you to look at the data NetSocket has ready for reading without actually advancing the current read position. Returns all of the available data that is ready for reading. */
View
6 Classes/ULINetSocket.m
@@ -363,7 +363,7 @@ - (BOOL)listenOnPort:(UInt16)inPort maxPendingConnections:(int)inMaxPendingConne
return YES;
}
--(BOOL)listenOnSocket: (NSString *)path maxPendingConnections:(int)inMaxPendingConnections
+-(BOOL)listenOnLocalSocketPath: (NSString *)path maxPendingConnections:(int)inMaxPendingConnections
{
CFSocketNativeHandle nativeSocket;
struct sockaddr_un socketAddress;
@@ -453,7 +453,7 @@ - (BOOL)connectToHost:(NSString*)inHostname port:(UInt16)inPort timeout:(NSTimeI
return YES;
}
--(BOOL)connectToSocket: (NSString *)path
+-(BOOL)connectToLocalSocketPath: (NSString *)path
{
struct sockaddr_un socketAddress;
NSData* socketAddressData;
@@ -932,7 +932,7 @@ - (void)_cfsocketNewConnection
ULINetSocket* netsocket;
// Accept all pending connections
- while( netsocket = [self _socketAcceptConnection] )
+ while(( netsocket = [self _socketAcceptConnection] ))
{
// Notify our delegate that a new connection has been accepted
if( [mDelegate respondsToSelector:@selector( netsocket:connectionAccepted: )] )
Please sign in to comment.
Something went wrong with that request. Please try again.