MCPcopy Create free account
hub / github.com/SIPp/sipp / setup_stdin_socket

Function setup_stdin_socket

src/socket.cpp:547–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547void setup_stdin_socket()
548{
549 stdin_fileno = fileno(stdin);
550 stdin_mode = fcntl(stdin_fileno, F_GETFL);
551 atexit(reset_stdin);
552 fcntl(stdin_fileno, F_SETFL, stdin_mode | O_NONBLOCK);
553
554 stdin_socket = new SIPpSocket(0, T_TCP, stdin_fileno, 0);
555}
556
557#define SIPP_ENDL "\r\n"
558void handle_stdin_socket()

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected