File: trysocket.c

package info (click to toggle)
gatling 0.13-6
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,196 kB
  • ctags: 1,115
  • sloc: ansic: 23,805; makefile: 143; sh: 71; perl: 30
file content (11 lines) | stat: -rw-r--r-- 186 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#ifdef __MINGW32__
#include <windows.h>
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#endif

main() {
  int fd=socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
}