Skip to content
This repository was archived by the owner on Apr 16, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: false
AlignEscapedNewlinesLeft: false
Expand Down Expand Up @@ -40,7 +40,7 @@ MaxEmptyLinesToKeep: 2
NamespaceIndentation: Inner
PointerAlignment: Right
ReflowComments: true
SortIncludes: true
SortIncludes: false
SpaceAfterCStyleCast: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
Expand Down
2 changes: 1 addition & 1 deletion examples/socket_tcp_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ int main()

Socket s(SF::domain::IPv4, SF::type::TCP);
s.connect("0.0.0.0", 24000);
s.write("Hello World!!");
s.send("Hello World!!");

} catch (std::exception &e) {
std::cerr << e.what() << "\n";
Expand Down
3 changes: 1 addition & 2 deletions examples/socket_tcp_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ using namespace net;
int main()
{
try {

Socket s(SF::domain::IPv4, SF::type::TCP);
s.start("0.0.0.0", 24000);

while (1) {
auto peer = s.accept();
auto msg = peer.read(100);
auto msg = peer.recv();
std::cout << msg << "\n";
}

Expand Down
Loading