geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

socket.h
Go to the documentation of this file.
1/*
2 * socket.h - this file is part of Geany, a fast and lightweight IDE
3 *
4 * Copyright 2006 The Geany contributors
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21
22#ifndef GEANY_SOCKET_H
23#define GEANY_SOCKET_H 1
24
25#include <glib.h>
26
27G_BEGIN_DECLS
28
29/* Used on Windows for TCP socket based IPC.
30 * The port number is just random but should be below 49152 as Hyper-V tends to bind
31 * dynamic port ranges from 49152 to 65535. */
32#define SOCKET_WINDOWS_REMOTE_CMD_PORT 45937
33
35{
36 gboolean ignore_socket;
37 gchar *file_name;
38 GIOChannel *read_ioc;
41};
42
43extern struct SocketInfo socket_info;
44
45gint socket_init(gint argc, gchar **argv, gushort socket_port);
46
47gboolean socket_lock_input_cb(GIOChannel *source, GIOCondition condition, gpointer data);
48
49gint socket_finalize(void);
50
51G_END_DECLS
52
53#endif /* GEANY_SOCKET_H */
gint socket_finalize(void)
struct SocketInfo socket_info
gint socket_init(gint argc, gchar **argv, gushort socket_port)
gboolean socket_lock_input_cb(GIOChannel *source, GIOCondition condition, gpointer data)
gchar * file_name
Definition: socket.h:37
gint lock_socket
Definition: socket.h:39
gboolean ignore_socket
Definition: socket.h:36
guint lock_socket_tag
Definition: socket.h:40
GIOChannel * read_ioc
Definition: socket.h:38