Skip to content

Commit c111d9b

Browse files
Update ofApp.cpp
1 parent bc2c1b8 commit c111d9b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

example_client_hello_world/src/ofApp.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ void ofApp::setup(){
2222
// BIG GOTCHA: on BSD systems, e.g. Mac OS X, these time params are system-wide
2323
// ...so ka_time just says "check if alive when you want" instead of "check if
2424
// alive after X seconds"
25+
// Note: some have had issues with only setting one of these; may be an
26+
// all-or-nothing type option!
2527
options.ka_time = 1;
26-
// options.ka_probes = 1;
27-
// options.ka_interval = 1;
28+
options.ka_probes = 1;
29+
options.ka_interval = 1;
2830

2931
// 4 - connect
3032
client.connect(options);
@@ -119,4 +121,4 @@ void ofApp::gotMessage(ofMessage msg){
119121
//--------------------------------------------------------------
120122
void ofApp::dragEvent(ofDragInfo dragInfo){
121123

122-
}
124+
}

0 commit comments

Comments
 (0)