EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Custom Transport Handler

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#12832
Posted: 03/20/2010 02:24:49
by Gerry Weaver (Standard support level)
Joined: 03/14/2010
Posts: 5

Hello All,

I need to integrate MsgConnect to an existing server framework. I'm looking for a way to provide MsgConnect with a connected client socket with data ready to read. Then MsgConnect would do it's normal thing. It looks like I would need to create a modified version of the TCP SocketTransport class. Any advice on this would be much appreciated. Basically, I just want MsgConnect to skip the listen/select/accept/select/read and use the provided socket instead.

Thanks,
Gerry
#12833
Posted: 03/20/2010 02:37:05
by Eugene Mayevski (EldoS Corp.)

I imagine it in the following way:

you create your custom socket class (inheriting from MCStdSocket) and override Listen and Accept methods. So that Connect method works as before for outgoing connections, and Listen and Accept methods work for your task. Also you have access to socket handle, so you can replace it (or just not allocate it).

Not a hard task if you study the source code.


Sincerely yours
Eugene Mayevski
#12834
Posted: 03/20/2010 02:42:22
by Gerry Weaver (Standard support level)
Joined: 03/14/2010
Posts: 5

Hi,

I'll give it a go.

Thanks,
Gerry

Reply

Statistics

Topic viewed 2705 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!