scs icon indicating copy to clipboard operation
scs copied to clipboard

Connect a hosted TCP service

Open Abhijeet310187 opened this issue 7 years ago • 2 comments

Hi,

We have a logging service hosted in our infrastructure, that is built using HIK SCS library.

Is it possible to connect to the service normally without HIK SCS client?

I am getting issues.

Abhijeet310187 avatar May 15 '18 01:05 Abhijeet310187

Is it possible to connect to the service normally without HIK SCS client?

Yes, possible if you can implement the same protocol on the pairing application. You can understand protocol (used BinarySerializationProtocol by default) from the document (https://www.codeproject.com/Articles/155282/A-Complete-TCP-Server-Client-Communication-and-RMI) and source code.

Hint: See to understand the message format of the BinarySerializationProtocol class:

https://github.com/hikalkan/scs/blob/master/src/Scs/Communication/Scs/Communication/Protocols/BinarySerialization/BinarySerializationProtocol.cs#L60

There is a 4-bytes "message length" followed by the binary serialized object (for each message).

hikalkan avatar May 15 '18 13:05 hikalkan

Thank you Halil,

I will give it a try.

Regards, Abhijeet

On Tue, May 15, 2018 at 11:12 PM, Halil İbrahim Kalkan < [email protected]> wrote:

Is it possible to connect to the service normally without HIK SCS client?

Yes, possible if you can implement the same protocol on the pairing application. You can understand protocol (used BinarySerializationProtocol

https://github.com/hikalkan/scs/blob/master/src/Scs/Communication/Scs/Communication/Protocols/BinarySerialization/BinarySerializationProtocol.cs by default) from the document (https://www.codeproject.com/ Articles/155282/A-Complete-TCP-Server-Client-Communication-and-RMI) and source code.

Hint: See to understand the message format of the BinarySerializationProtocol class:

https://github.com/hikalkan/scs/blob/master/src/Scs/Communication/Scs/ Communication/Protocols/BinarySerialization/BinarySerializationProtocol. cs#L60

There is a 4-bytes "message length" followed by the binary serialized object (for each message).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hikalkan/scs/issues/33#issuecomment-389161379, or mute the thread https://github.com/notifications/unsubscribe-auth/AQO19thjrDlaPeBYjQ5dGauuaPauP1yfks5tytRQgaJpZM4T-wMI .

Abhijeet310187 avatar May 15 '18 23:05 Abhijeet310187