New topic: 

ServerSocket Example Project ActiveConnections

<http://forums.realsoftware.com/viewtopic.php?t=45847>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        p0wn3d          Post subject: ServerSocket Example Project 
ActiveConnectionsPosted: Thu Nov 08, 2012 7:51 am                         
Joined: Sun Oct 28, 2012 4:54 am
Posts: 6                Hi All,

Having downloaded the ServerSocketServer example project I am trying to 
understand how to communicate with a single connected client referencing it's 
remote IP address.

I have added a method to the ServerSocket with a Method Name of 
"ActiveConnections" with both Parameters and Return Type fields left "blank" 
with the following Code.

  dim Data As string = "hello"
  
  If UBound(ServerSocket.ActiveConnections) > 0 Then
  Dim i As Integer
  For i = 1 to UBound(ServerSocket.ActiveConnections)
  
  If ServerSocket.ActiveConnections(i).RemoteAddress = "10.10.10.1" Then
    ServerSocket.ActiveConnections(i).Write Data
  End If
  Next
  
  End If

The problem is that I am getting the following error at debug time.

This Method requires fewer parameters than were passes
If ServerSocket.ActiveConnections(i).RemoteAddress = "10.10.10.1"

Maybe it's just me but there seems to be very little resource in the 
tutorials/language reference to help understand how 
SocketServer.ActiveConnections() can be used to send data to a single socket 
instance.


Any Help would be really appreciated...

    
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to