Xojo Conferences
XDCMay2019MiamiUSA

[MBS] Feature Request: Supersocket (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] 3.1pr10
Next thread: [MBS] Feature Request: Apple Script


Re: [MBS] MIDI Destinations and External Devices   -   Ron Benditt
  [MBS] Feature Request: Supersocket   -   Bastian Bense
   Re: [MBS] Feature Request: Supersocket   -   Christian Schmitz
    Re(2): [MBS] Feature Request: Supersocket   -   Bastian Bense
     Re: Re(2): [MBS] Feature Request: Supersocket   -   Charlie Boisseau
      Re(4): [MBS] Feature Request: Supersocket   -   Bastian Bense
       Re: Re(4): [MBS] Feature Request: Supersocket   -   Charlie Boisseau
        Re(6): [MBS] Feature Request: Supersocket   -   Bastian Bense
         Re: Re(6): [MBS] Feature Request: Supersocket   -   Charlie Boisseau

[MBS] Feature Request: Supersocket
Date: 29.01.03 14:05 (Wed, 29 Jan 2003 14:05:18 +0100)
From: Bastian Bense
Hello!

I've found some comments in the mailing list archive
<http://www.monkeybreadsoftware.de/realbasic/listarchive/
thread_31122002_mbssupersocket1.html>
and request this plugin to be implented into the MBS plugin.

Since there is no RB5 yet and a lot people will tend to use RB 4.5 even
after the first release of RB5 (that might be even more buggy than 4.5 in
my expierience - lets hope not tho ;) this would be a kick ass thing for
the plugin since I need the UDP / TCPEndpoint classes in my projects.

I guess RB5 will be released in summer anyway. :P

Cheers,
Bastian Bense

Re: [MBS] Feature Request: Supersocket
Date: 29.01.03 17:15 (Wed, 29 Jan 2003 17:15:22 +0100)
From: Christian Schmitz
> Hello!
>
> I've found some comments in the mailing list archive
> <http://www.monkeybreadsoftware.de/realbasic/listarchive/
> thread_31122002_mbssupersocket1.html>
> and request this plugin to be implented into the MBS plugin.

I've got a recent version of Supersocket in my download area.
But as long as James doesn't say what he does in the future, I don't
really want to integrate it.

Mfg
Christian

Re(2): [MBS] Feature Request: Supersocket
Date: 29.01.03 18:44 (Wed, 29 Jan 2003 18:44:55 +0100)
From: Bastian Bense
Hey

I got the version from your website but in get info it tells me its
version 2.1.1 and not 2.2.
There is another problem with supersocket on windows, that makes me
unable to use TCPEndpoints and UDPEndpoints on it - and unfortunately I
can't wait until realsoftware releases 5.0. :/

Any ideas?

Cheers,
Bastian Bense

Re: Re(2): [MBS] Feature Request: Supersocket
Date: 29.01.03 18:51 (Wed, 29 Jan 2003 17:51:12 +0000)
From: Charlie Boisseau
> I got the version from your website but in get info it tells me its
> version 2.1.1 and not 2.2.

That's because the 2.2 update was barely an update: I think James must have
forgotten to update the version number.

I don't think he ever got anyone to test the Endpoints on an x86 machine.
What's the problem?

Re(4): [MBS] Feature Request: Supersocket
Date: 29.01.03 18:58 (Wed, 29 Jan 2003 18:58:14 +0100)
From: Bastian Bense
Well, the sockets compile fine and nothing crashes.
It says everything okay and calls no error events (it even calls the
bound() event after binding it to a port).

The problem is that it does not accept any connections.

Cheers,
Bastian Bense

Re: Re(4): [MBS] Feature Request: Supersocket
Date: 29.01.03 19:07 (Wed, 29 Jan 2003 18:07:16 +0000)
From: Charlie Boisseau
> The problem is that it does not accept any connections.

Have you set up a ConnectionHandler to pass the ConnectionRequest to an
endpoint?

You could debug it by making it fire up a msgbox when it receives a
connection request. If that happens then you know that the connection is
working, but it's your code that isn't handling the request correctly.

Re(6): [MBS] Feature Request: Supersocket
Date: 29.01.03 20:27 (Wed, 29 Jan 2003 20:27:36 +0100)
From: Bastian Bense
Yeah. It's weird since it works just find under Mac OS X. (In IDE and in
compiled app).
The newConnection event is not even being executed and the client
computer does not get a connection to the host.

Or is there anything known that you can't append instances of a class to
the app (myApp) class in apps on windows?

Below is the code in my newConnection event.
As said, it works PERFECTLY under Mac OS X and since I dont see the
"Connection requested" that might indicate that something went wrong
while accepting the connection.

-- newConnection --

// Create a new class instance of conAfar (TCPEndpoint).
dim ep as conAfar
ep = new conAfar

// Accept the request with the new endpoint and append the
// instance to the app.afarUsers array of type conAfar.
if ep.Accept(req) then
addLog logNotice, "[Afar] Connection requested from "+req.Address+"."
app.afarUsers.append ep
end if

exception err
dbgCrash err, "conAfarListener.NewConnection"

-- / end of code snippet --

Cheers,
Bastian Bense

Re: Re(6): [MBS] Feature Request: Supersocket
Date: 29.01.03 21:02 (Wed, 29 Jan 2003 20:02:49 +0000)
From: Charlie Boisseau
> Yeah. It's weird since it works just find under Mac OS X. (In IDE and in
> compiled app).
> The newConnection event is not even being executed and the client
> computer does not get a connection to the host.

If it's not even detecting the connection (i.e. NewConnection isn't firing
at all), then there's something blocking the connection. Possibly the port
is already in use, or reserved.

> Or is there anything known that you can't append instances of a class to
> the app (myApp) class in apps on windows?

I'm not sure what you mean, but the class hierarchy system operates in an
identical way on all platforms.

> if ep.Accept(req) then
> addLog logNotice, "[Afar] Connection requested from "+req.Address+"."
> app.afarUsers.append ep
> end if

If you do get it to the stage where this code gets a change to run; if it
isn't accepting connections (ep.Accept(req) returns false), then ep will
fire it's error event. You can then use the SSErrorToString function to see
exactly why it isn't working.