kc3-lang/libevent/sample/hello-world.c

Branch :


Log

Author Commit Date CI Message
e77f1872 2021-04-02 21:02:12 sample: use unsigned short instead of int for port The C standard gurantees that an unsigned short is at least up to 65535 huge. Enough to store every TCP port. Also the parameter PORT is overgiven to the `htons()` function which assumes that the parameter is of type `uint16_t` which unsigned short is on most platforms.
1edb6f61 2019-12-29 20:52:17 Initialize variable to 0 replace use memset function in sample/hello-world.c
2d3cd353 2016-03-04 19:18:18 sample/hello-world: exAmple, not eXMple Fixes: #334
9f560bfa 2011-05-25 19:50:56 Use "_WIN32", not WIN32: it's standard and we don't need to fake it This patch was automatically generated with perl. Based on a patch by Peter Rosin.
10c834c4 2011-02-13 01:22:25 Include arpa/inet.h as needed on HPUX
d89fdba4 2010-07-05 12:28:22 Make sample/hello_world work on windows We forgot to include the WSAStartup call in main(). Patch from an anonymous user on Sourceforge. Fixes bug 3025354.
b72be50d 2010-02-18 13:52:04 Add some headers to fix freebsd compilation
becb9f9c 2010-01-27 01:46:23 Add a new "hello world" sample program