diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-10-27 10:37:40 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-10-27 10:37:40 +0000 |
commit | 0f7fce84ae5b325cb2e63c2cc6d9e2e87db72c07 (patch) | |
tree | e157e2717efec5c0523f9fb1164b6406e5a62d07 | |
parent | 1eb11e809a4df81e1d031232165bc27ba2a3b86e (diff) |
libsylph/socket.c: fd_accept(): enabled on win32.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@693 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ChangeLog.ja | 4 | ||||
-rw-r--r-- | libsylph/socket.c | 5 |
3 files changed, 8 insertions, 5 deletions
@@ -1,5 +1,9 @@ 2005-10-27 + * libsylph/socket.c: fd_accept(): enabled on win32. + +2005-10-27 + * libsylph/socket.[ch]: fd_connect_inet(), fd_open_inet(): new. fd_open_unix(): set SO_REUSEADDR flag to avoid bind() error. * src/main.c: win32: implemented remote command using TCP socket. diff --git a/ChangeLog.ja b/ChangeLog.ja index 402b50c4..7255a6c3 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,5 +1,9 @@ 2005-10-27 + * libsylph/socket.c: fd_accept(): win32 で有効にした。 + +2005-10-27 + * libsylph/socket.[ch]: fd_connect_inet(), fd_open_inet(): 新規。 fd_open_unix(): bind() のエラーを避けるために SO_REUSEADDR を指定。 * src/main.c: win32: TCP socket を使用してリモートコマンドを実装。 diff --git a/libsylph/socket.c b/libsylph/socket.c index 433491c3..e0ca1fa5 100644 --- a/libsylph/socket.c +++ b/libsylph/socket.c @@ -336,18 +336,13 @@ gint fd_open_unix(const gchar *path) gint fd_accept(gint sock) { -#ifdef G_OS_UNIX struct sockaddr_in caddr; guint caddr_len; caddr_len = sizeof(caddr); return accept(sock, (struct sockaddr *)&caddr, &caddr_len); -#else - return -1; -#endif } - static gint set_nonblocking_mode(gint fd, gboolean nonblock) { #ifdef G_OS_UNIX |