EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Custom Transport Handler

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.

Posted: 03/20/2010 02:37:05
by Eugene Mayevski (Team)

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
Posted: 03/20/2010 02:42:22
by Gerry Weaver (Standard support level)
Joined: 03/14/2010
Posts: 5


I'll give it a go.




Topic viewed 5074 times

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


Back to top

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

Got it!