Changeset 246860 in webkit
- Timestamp:
- Jun 26, 2019 5:20:26 PM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r246851 r246860 1 2019-06-26 Basuke Suzuki <Basuke.Suzuki@sony.com> 2 3 [RemoteInspector] Add address argument to listen for RemoteInspectorServer Socket implementation. 4 https://bugs.webkit.org/show_bug.cgi?id=199035 5 6 Reviewed by Ross Kirsling. 7 8 Added new argument `address` to start listening. 9 10 * inspector/remote/socket/RemoteInspectorServer.cpp: 11 (Inspector::RemoteInspectorServer::start): 12 * inspector/remote/socket/RemoteInspectorServer.h: 13 * inspector/remote/socket/posix/RemoteInspectorSocketPOSIX.cpp: 14 (Inspector::Socket::listen): 15 * inspector/remote/socket/win/RemoteInspectorSocketWin.cpp: 16 (Inspector::Socket::listen): 17 1 18 2019-06-26 Keith Miller <keith_miller@apple.com> 2 19 -
trunk/Source/JavaScriptCore/inspector/remote/socket/RemoteInspectorServer.cpp
r245536 r246860 133 133 } 134 134 135 bool RemoteInspectorServer::start( uint16_t port)135 bool RemoteInspectorServer::start(const char* address, uint16_t port) 136 136 { 137 137 m_server = RemoteInspectorSocketEndpoint::create(this, "RemoteInspectorServer"); 138 138 139 if (!m_server->listenInet( nullptr, port)) {139 if (!m_server->listenInet(address, port)) { 140 140 m_server = nullptr; 141 141 return false; -
trunk/Source/JavaScriptCore/inspector/remote/socket/RemoteInspectorServer.h
r244919 r246860 41 41 JS_EXPORT_PRIVATE static RemoteInspectorServer& singleton(); 42 42 43 JS_EXPORT_PRIVATE bool start( uint16_t);43 JS_EXPORT_PRIVATE bool start(const char* address, uint16_t port); 44 44 bool isRunning() const { return !!m_server; } 45 45 -
trunk/Source/JavaScriptCore/inspector/remote/socket/posix/RemoteInspectorSocketPOSIX.cpp
r245606 r246860 93 93 // FIXME: Support AF_INET6 connections. 94 94 address.sin_family = AF_INET; 95 if (addressStr )95 if (addressStr && *addressStr) 96 96 inet_aton(addressStr, &address.sin_addr); 97 97 else -
trunk/Source/JavaScriptCore/inspector/remote/socket/win/RemoteInspectorSocketWin.cpp
r244919 r246860 179 179 struct sockaddr_in address = { }; 180 180 address.sin_family = AF_INET; 181 if (addressStr )181 if (addressStr && *addressStr) 182 182 ::inet_pton(AF_INET, addressStr, &address.sin_addr); 183 183 else
Note: See TracChangeset
for help on using the changeset viewer.