Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

How to communicate a c socket with cpp socket on linux.

JLuna5
New Contributor I
400 Views

Good day, I'm trying to make a socket communication between c socket and cpp socket, but it don't functin me, who can help me?

 

Thank you!

0 Kudos
4 Replies
Melanie_B_Intel
Employee
400 Views

You can use a "linkage specification" to interface between C++ and C

Here's a reference, http://en.cppreference.com/w/cpp/language/language_linkage

0 Kudos
Bernard
Valued Contributor I
400 Views

Have you tried to use extern "C" keyword?

0 Kudos
JLuna5
New Contributor I
400 Views

Melanie Blower thak you!

0 Kudos
JLuna5
New Contributor I
400 Views

Hi iliyapolak thabk you!

0 Kudos
Reply