[#CNode-SetCommonVersion]
= xref:CNode.adoc[CNode]::SetCommonVersion
:relfileprefix: ../
:mrdocs:

Record the greatest protocol version common to us and the peer&period;

== Synopsis

Declared in `&lt;net&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SetCommonVersion(int greatest&lowbar;common&lowbar;version);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *greatest&lowbar;common&lowbar;version*
| the greatest protocol version shared with the peer&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
