File: sock.h

package info (click to toggle)
linuxptp 4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,536 kB
  • sloc: ansic: 26,119; sh: 92; makefile: 87
file content (17 lines) | stat: -rw-r--r-- 479 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
 * @file sock.h
 * @note Copyright (C) 2020 Richard Cochran <richardcochran@gmail.com>
 * @note SPDX-License-Identifier: GPL-2.0+
 */
#ifndef HAVE_SOCK_H
#define HAVE_SOCK_H

/**
 * Opens a socket connected to a given remote address.
 * @param server	Host name or IP address of the server.
 * @param port		Port on the server with which to connect.
 * @return		An open file descriptor on success, -1 otherwise.
 */
int sock_open(const char *server, const char *port);

#endif