Alaska Software Inc. - SocketNegotiateSSL()
Username: Password:
AuthorTopic: SocketNegotiateSSL()
Jonathan LeemingSocketNegotiateSSL()
on Fri, 27 Mar 2015 11:56:57 -0600
Hi,

I'm trying to figure out how to impliment SSL websockets and came
across this comand in the documentation.  I seem to remember at the
last SouthWest Xbase conference that there was a brief discussion
about SSL and Web Sockets with the answer that it is not currently
available.

Given that... What does this SocketNegotiateSSL() actually do and is
it possible now to have SSL web socket connections.  I looked through
the sample but could not find an example of the impimentaion of this.

Any quick hints would certainly be appreciated... actual examples
would bring out my everlasting gratitude!

Thanks... Jonathan
Peter AlderliestenRe: SocketNegotiateSSL()
on Sat, 28 Mar 2015 19:30:24 +0100
Jonathan,

> I'm trying to figure out how to impliment SSL websockets and came
> across this comand in the documentation.  I seem to remember at the
> last SouthWest Xbase conference that there was a brief discussion
> about SSL and Web Sockets with the answer that it is not currently
> available.

That answer still stands. I haven't heard any news on this and don't expect
to hear anything on this soon.

> Given that... What does this SocketNegotiateSSL() actually do and is
> it possible now to have SSL web socket connections.  I looked through
> the sample but could not find an example of the impimentaion of this.

These are the windows sockets functions.

There are a few socket samples on this available:
	source\samples\apps\httpservice
	source\samples\asinet\sockets

The websocket samples are here:
	source\samples\multitier\pictureserver
	source\samples\multitier\trace

Peter
Jonathan LeemingRe: SocketNegotiateSSL()
on Sat, 28 Mar 2015 14:24:40 -0600
Thanks Peter,

I really enjoyed your presentation on Sockets at Southwest Xbase++
2014!  Since then I have created a couple of processes that allows me
to start a Socket Server from within my main application and force all
other instances of the running application to connect to the Socket
Server.  I display various details about the other connected instances
in a browse and using a context menu can capture screen shots of the
other instances, display thread details and invoke a chat session with
any of the other workstations as well as transfer files back and
forth.  Should I want to I can also force any of the other
workstations to close their application or shutdown the workstation.
Handy for those users who forget to log out at the end of a day.  My
primary objective with this was to get comfortable using Sockets.

I only just found out this morning, thanks to a newsgroup post by
Andreas Gehrs-Pahl that Sockets was supporting in 1.90 (I guess I
should spend more time looking through the 1.90 CD!

Now I am considering using sockets from a webpage for registering in
courses.  I'm envisioning the webpage connecting to a an internet
connected PC to act as an intermediary (this PC has no data access for
an extra level of protection) that would intern connect to either a PC
that is on the domain or perhaps the actual server again using
Sockets.  The webpage would have a form to get the details of the
prospective registrant and send the information via the socket
connection to the intermediary PC which would then pass the details to
the data aware application.  It would send back a list of courses that
the registrant would available to the registrant again through the
intermediary PC.  Once the webpage user (registrant) has selected romr
the list of presented courses the selection would be sent down, the
database updated, and confirmation sent back.

Of course it would be simpler to skip out the intermediary PC but this
way I think my data has better protection from the internet.

Having an SSL connection would be better given the type of information
that is being passed.  Fortunately the course that this would be used
for is free so there are no credit card details required.

Once again thanks and I hope to see you at Southwest Xbase 2015!

Regards... Jonathan

On Sat, 28 Mar 2015 19:30:24 +0100, Peter Alderliesten wrote:

>Jonathan,
>
>> I'm trying to figure out how to impliment SSL websockets and came
>> across this comand in the documentation.  I seem to remember at the
>> last SouthWest Xbase conference that there was a brief discussion
>> about SSL and Web Sockets with the answer that it is not currently
>> available.
>
>That answer still stands. I haven't heard any news on this and don't expect
>to hear anything on this soon.
>
>> Given that... What does this SocketNegotiateSSL() actually do and is
>> it possible now to have SSL web socket connections.  I looked through
>> the sample but could not find an example of the impimentaion of this.
>
>These are the windows sockets functions.
>
>There are a few socket samples on this available:
>	source\samples\apps\httpservice
>	source\samples\asinet\sockets
>
>The websocket samples are here:
>	source\samples\multitier\pictureserver
>	source\samples\multitier\trace
>
>Peter
Peter AlderliestenRe: SocketNegotiateSSL()
on Mon, 30 Mar 2015 09:44:56 +0200
Jonathan,

> I really enjoyed your presentation on Sockets at Southwest Xbase++
> 2014!  Since then I have created a couple of processes that allows me
> to start a Socket Server from within my main application and force all
> other instances of the running application to connect to the Socket
> Server.  I display various details about the other connected instances
> in a browse and using a context menu can capture screen shots of the
> other instances, display thread details and invoke a chat session with
> any of the other workstations as well as transfer files back and
> forth.  Should I want to I can also force any of the other
> workstations to close their application or shutdown the workstation.
> Handy for those users who forget to log out at the end of a day.  My
> primary objective with this was to get comfortable using Sockets.

Sound very interesting.
I would like to have a look at it when we meet again.

> Once again thanks and I hope to see you at Southwest Xbase 2015!

Same here.
Peter
Steven SchefferRe: SocketNegotiateSSL()
on Wed, 01 Apr 2015 15:44:42 +0200
A while back (2004) Phil wrote functions to use the OpenSSL library.
with Asinet1c.lib for SSL communication. Is this what you mean?
http://www.xbaseprogrammer.com/Files/PhilIde/xbssl.zip

Regards,
Steven 

>I'm trying to figure out how to impliment SSL websockets
Jonathan LeemingRe: SocketNegotiateSSL()
on Wed, 01 Apr 2015 18:45:23 -0600
Hi Steven,

Thanks for the link.  I have downloaded the zip and the OpenSSL
libraries.  It looks like it is in the direction that I need to go and
will check it out.

Thans Again... Much Appreciated... Jonathan

On Wed, 01 Apr 2015 15:44:42 +0200, Steven Scheffer wrote:

>A while back (2004) Phil wrote functions to use the OpenSSL library.
>with Asinet1c.lib for SSL communication. Is this what you mean?
>http://www.xbaseprogrammer.com/Files/PhilIde/xbssl.zip
>
>Regards,
>Steven 
>
>>I'm trying to figure out how to impliment SSL websockets