开发者

Network Communication Question

开发者 https://www.devze.com 2022-12-20 16:09 出处:网络
I would like to ask a question about network communication. The Question is: A server uses the socket interface on the Lunix platform,

I would like to ask a question about network communication.

The Question is:

A server uses the socket interface on the Lunix platform,

and a client uses Winock on the Windows platform.

Can they communicate?

Explain briefly.

I guess the answer is NO.

I gue开发者_如何学编程ss it is due to the compatibility between 2 different socket interface?!

But I am not sure my estimation is right or not.

So, I hope someone could give me some comments about this questions.

Thank you very much!


Not right at all.

The APIs are different, but both sockets create packets written to a standard format described in RFC 793 and lots of subsequent revisions and additions.

Follow that packet format, and implementations written for different platforms and in different languages will talk to each other.

This is the magic of the internet.

0

精彩评论

暂无评论...
验证码 换一张
取 消