Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Cosmetic changes. | 54a9e723c3a958e69f491b55df83f96b6814af44 | Catalin(ux) M. BOIE | 2009-08-31 20:07:51 |
Raised default listen para to 4096 from 128. somaxconn still has prio. | af39935492f39786879ea6ced9f7dfe929c4879d | Catalin(ux) M. BOIE | 2009-08-31 19:56:36 |
Store in time_open the accept timestamp so Conn_lifetime will work on srv side. | 0522d638872644d7bd6490027a7ae99b1fb4b16f | Catalin(ux) M. BOIE | 2009-08-31 19:55:44 |
Improved blackhole examples. | 128f393aba2b07c4aa0e41d962a8239dffc3cc10 | Catalin(ux) M. BOIE | 2009-08-31 17:41:30 |
More entries to .gitignore. | e1d71bcf46a9b61a4aa4e17b857ff9035d7fb6c7 | Catalin(ux) M. BOIE | 2009-08-31 17:39:45 |
Tweaked a little the debug level for some messages. | 1a27a1acf2ede62fb02b074f232badeb847bfcb8 | Catalin(ux) M. BOIE | 2009-08-31 17:39:21 |
Added Conn_lifetime (returns the time in ms between connected state and now). | 4e3f1aaabc21d4cbdac26e42612ebd0298c8d86e | Catalin(ux) M. BOIE | 2009-08-31 17:22:37 |
Added Conn_sys that logs some system variables related to network perf. | af960f317b8ca9a8f78fe44e80ddbdb6a9483e6f | Catalin(ux) M. BOIE | 2009-08-31 16:36:00 |
Better output flags. | d57a98c2b158aeb30530c2e5188977a40336a360 | Catalin(ux) M. BOIE | 2009-08-25 20:37:55 |
Improved examples. | 75439293c1d067327e606d72ec6290b43110bf24 | Catalin(ux) M. BOIE | 2009-08-25 20:37:29 |
Removed line1.c because duplicates code. | 1119059afacde8d0b7b7dab77850dd6b71684190 | Catalin(ux) M. BOIE | 2009-08-25 20:11:52 |
Removed *.run becasue we have a generic run script. | 007083cd9d1abefe4dd73e65c9026a2607fbcd4e | Catalin(ux) M. BOIE | 2009-08-25 20:09:00 |
Removed bind_s example because blackhole_s will take place. | b9b06d98f00413b5a5df9d7bc9b3bd05b5536f28 | Catalin(ux) M. BOIE | 2009-08-25 20:07:38 |
Added Conn_set_address helper. | 1b6e7e8a294ac88aa966e4e43bb77a4fdff0ca5a | Catalin(ux) M. BOIE | 2009-08-25 19:21:00 |
Fixed storing of local address (do not overwrite remote address). | d431edba6699d1363e4d616aa6f96588272188b0 | Catalin(ux) M. BOIE | 2009-08-25 18:37:55 |
Added Conn_stop to eleganly stop Conn system. | 4ca191771c5c119e9755a5af3158fabe43ddf5f2 | Catalin(ux) M. BOIE | 2009-08-25 18:30:32 |
Replaced Conn_protocol with Conn_get_socket_protocol. | a1cbc5c612d82e6d1341524c67fe249648c81806 | Catalin(ux) M. BOIE | 2009-08-25 18:16:45 |
Compressed a little the POLL flags. | 47b5dce395694c18c973e3ce6ba9a71c690a41bc | Catalin(ux) M. BOIE | 2009-08-25 18:16:16 |
Store also local address for incoming connections. | 0548ce6434185cdd36e110c61315b4cb21849666 | Catalin(ux) M. BOIE | 2009-08-25 18:15:46 |
Added possibility to shutdown blackhole_s server by typing 'quit'. | 5fd60900809e1a2d7554aa7fa93ce83b29214de0 | Catalin(ux) M. BOIE | 2009-08-25 17:54:27 |
File | Lines added | Lines deleted |
---|---|---|
Conn.c | 4 | 4 |
examples/blackhole_s.c | 2 | 0 |
File Conn.c changed (mode: 100644) (index a6d0e70..8a4cf86) | |||
... | ... | int Conn_enqueue(struct Conn *C, void *buf, const size_t count) | |
268 | 268 | ||
269 | 269 | static void Conn_free_intern(struct Conn *C) | static void Conn_free_intern(struct Conn *C) |
270 | 270 | { | { |
271 | Log(11, "%s: Cleaning-up slot in %s state, slot=%u, id=%llu [%s]...\n", | ||
272 | __FUNCTION__, Conn_state(C), C->slot, C->id, Conn_errno(C)); | ||
271 | Log(11, "%s: Cleaning-up id %llu (slot %u) in state %s [%s]...\n", | ||
272 | __FUNCTION__, C->id, C->slot, Conn_state(C), Conn_errno(C)); | ||
273 | 273 | ||
274 | 274 | snprintf(Conn_error, sizeof(Conn_error), | snprintf(Conn_error, sizeof(Conn_error), |
275 | 275 | "%s", Conn_errno(C)); | "%s", Conn_errno(C)); |
... | ... | static void Conn_move_slot(const unsigned int dst, const unsigned int src) | |
1292 | 1292 | if (dst == src) | if (dst == src) |
1293 | 1293 | return; | return; |
1294 | 1294 | ||
1295 | Log(10, "%s: Moving id %llu from slot %u to slot %d...\n", | ||
1295 | Log(10, "\t%s: Moving id %llu from slot %u to slot %d...\n", | ||
1296 | 1296 | __FUNCTION__, Conns[src].id, src, dst); | __FUNCTION__, Conns[src].id, src, dst); |
1297 | 1297 | ||
1298 | 1298 | /* We need to save old location because of usefull pointers */ | /* We need to save old location because of usefull pointers */ |
... | ... | int Conn_poll(const int timeout) | |
1338 | 1338 | if (ret < 0) | if (ret < 0) |
1339 | 1339 | return -1; | return -1; |
1340 | 1340 | ||
1341 | Log(9, "\tDo compacting, expiration and band stuff (%d event(s)...\n", | ||
1341 | Log(9, "\tDo compacting, expiration and band stuff (%d event(s))...\n", | ||
1342 | 1342 | ret); | ret); |
1343 | 1343 | i = 0; | i = 0; |
1344 | 1344 | while (i < Conn_no) { | while (i < Conn_no) { |
File examples/blackhole_s.c changed (mode: 100644) (index 33441dd..b0216d7) | |||
... | ... | int main(void) | |
115 | 115 | return 1; | return 1; |
116 | 116 | } else if (ret == 0) | } else if (ret == 0) |
117 | 117 | break; | break; |
118 | printf("%d event(s). Conn_no=%u.\n", | ||
119 | ret, Conn_no); | ||
118 | 120 | } | } |
119 | 121 | ||
120 | 122 | Conn_shutdown(); | Conn_shutdown(); |