Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: webrtc/base/win32socketserver.h

Issue 1362503003: Use suffixed {uint,int}{8,16,32,64}_t types. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase + revert basictypes.h (to be landed separately just in case of a revert due to unexpected us… Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/base/win32regkey_unittest.cc ('k') | webrtc/base/win32socketserver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual int Send(const void *buffer, size_t length); 45 virtual int Send(const void *buffer, size_t length);
46 virtual int SendTo(const void *buffer, size_t length, const SocketAddress& add r); 46 virtual int SendTo(const void *buffer, size_t length, const SocketAddress& add r);
47 virtual int Recv(void *buffer, size_t length); 47 virtual int Recv(void *buffer, size_t length);
48 virtual int RecvFrom(void *buffer, size_t length, SocketAddress *out_addr); 48 virtual int RecvFrom(void *buffer, size_t length, SocketAddress *out_addr);
49 virtual int Listen(int backlog); 49 virtual int Listen(int backlog);
50 virtual Win32Socket *Accept(SocketAddress *out_addr); 50 virtual Win32Socket *Accept(SocketAddress *out_addr);
51 virtual int Close(); 51 virtual int Close();
52 virtual int GetError() const; 52 virtual int GetError() const;
53 virtual void SetError(int error); 53 virtual void SetError(int error);
54 virtual ConnState GetState() const; 54 virtual ConnState GetState() const;
55 virtual int EstimateMTU(uint16* mtu); 55 virtual int EstimateMTU(uint16_t* mtu);
56 virtual int GetOption(Option opt, int* value); 56 virtual int GetOption(Option opt, int* value);
57 virtual int SetOption(Option opt, int value); 57 virtual int SetOption(Option opt, int value);
58 58
59 private: 59 private:
60 void CreateSink(); 60 void CreateSink();
61 bool SetAsync(int events); 61 bool SetAsync(int events);
62 int DoConnect(const SocketAddress& addr); 62 int DoConnect(const SocketAddress& addr);
63 bool HandleClosed(int close_error); 63 bool HandleClosed(int close_error);
64 void PostClosed(); 64 void PostClosed();
65 void UpdateLastError(); 65 void UpdateLastError();
66 static int TranslateOption(Option opt, int* slevel, int* sopt); 66 static int TranslateOption(Option opt, int* slevel, int* sopt);
67 67
68 void OnSocketNotify(SOCKET socket, int event, int error); 68 void OnSocketNotify(SOCKET socket, int event, int error);
69 void OnDnsNotify(HANDLE task, int error); 69 void OnDnsNotify(HANDLE task, int error);
70 70
71 SOCKET socket_; 71 SOCKET socket_;
72 int error_; 72 int error_;
73 ConnState state_; 73 ConnState state_;
74 SocketAddress addr_; // address that we connected to (see DoConnect) 74 SocketAddress addr_; // address that we connected to (see DoConnect)
75 uint32 connect_time_; 75 uint32_t connect_time_;
76 bool closing_; 76 bool closing_;
77 int close_error_; 77 int close_error_;
78 78
79 class EventSink; 79 class EventSink;
80 friend class EventSink; 80 friend class EventSink;
81 EventSink * sink_; 81 EventSink * sink_;
82 82
83 struct DnsLookup; 83 struct DnsLookup;
84 DnsLookup * dns_; 84 DnsLookup * dns_;
85 }; 85 };
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 DWORD id_; 155 DWORD id_;
156 }; 156 };
157 157
158 /////////////////////////////////////////////////////////////////////////////// 158 ///////////////////////////////////////////////////////////////////////////////
159 159
160 } // namespace rtc 160 } // namespace rtc
161 161
162 #endif // WEBRTC_WIN 162 #endif // WEBRTC_WIN
163 163
164 #endif // WEBRTC_BASE_WIN32SOCKETSERVER_H_ 164 #endif // WEBRTC_BASE_WIN32SOCKETSERVER_H_
OLDNEW
« no previous file with comments | « webrtc/base/win32regkey_unittest.cc ('k') | webrtc/base/win32socketserver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698