@@ -91,7 +91,7 @@ class _NativeSynchronousSocket extends _NativeSynchronousSocketNativeWrapper {
9191 var address = it.current;
9292 var socket = new _NativeSynchronousSocket ();
9393 socket.localAddress = address;
94- var result = socket._nativeCreateConnectSync (address._in_addr, port);
94+ var result = socket.nativeCreateConnectSync (address._in_addr, port);
9595 if (result is OSError ) {
9696 // Keep first error, if present.
9797 if (error == null ) {
@@ -117,7 +117,7 @@ class _NativeSynchronousSocket extends _NativeSynchronousSocketNativeWrapper {
117117 }
118118
119119 InternetAddress get address => localAddress;
120- int get available => _nativeAvailable ();
120+ int get available => nativeAvailable ();
121121
122122 int get port {
123123 if (localPort != 0 ) {
@@ -126,7 +126,7 @@ class _NativeSynchronousSocket extends _NativeSynchronousSocketNativeWrapper {
126126 if (isClosed) {
127127 throw const SocketException .closed ();
128128 }
129- var result = _nativeGetPort ();
129+ var result = nativeGetPort ();
130130 if (result is OSError ) {
131131 throw result;
132132 }
@@ -137,7 +137,7 @@ class _NativeSynchronousSocket extends _NativeSynchronousSocketNativeWrapper {
137137 if (isClosed) {
138138 throw const SocketException .closed ();
139139 }
140- var result = _nativeGetRemotePeer ();
140+ var result = nativeGetRemotePeer ();
141141 if (result is OSError ) {
142142 throw result;
143143 }
@@ -149,7 +149,7 @@ class _NativeSynchronousSocket extends _NativeSynchronousSocketNativeWrapper {
149149 if (isClosed) {
150150 throw const SocketException .closed ();
151151 }
152- var result = _nativeGetRemotePeer ();
152+ var result = nativeGetRemotePeer ();
153153 if (result is OSError ) {
154154 throw result;
155155 }
@@ -158,7 +158,7 @@ class _NativeSynchronousSocket extends _NativeSynchronousSocketNativeWrapper {
158158
159159 void closeSync () {
160160 if (! isClosed) {
161- _nativeCloseSync ();
161+ nativeCloseSync ();
162162 _SocketResourceInfo .SocketClosed (resourceInfo);
163163 isClosed = true ;
164164 }
@@ -209,7 +209,7 @@ class _NativeSynchronousSocket extends _NativeSynchronousSocketNativeWrapper {
209209 if (end == start) {
210210 return 0 ;
211211 }
212- var result = _nativeReadInto (buffer, start, (end - start));
212+ var result = nativeReadInto (buffer, start, (end - start));
213213 if (result is OSError ) {
214214 throw new SocketException ("readIntoSync failed" , osError: result);
215215 }
@@ -229,7 +229,7 @@ class _NativeSynchronousSocket extends _NativeSynchronousSocketNativeWrapper {
229229 if (len == 0 ) {
230230 return null ;
231231 }
232- var result = _nativeRead (len);
232+ var result = nativeRead (len);
233233 if (result is OSError ) {
234234 throw result;
235235 }
@@ -275,7 +275,7 @@ class _NativeSynchronousSocket extends _NativeSynchronousSocketNativeWrapper {
275275 if (isClosedWrite) {
276276 closeSync ();
277277 } else {
278- _nativeShutdownRead ();
278+ nativeShutdownRead ();
279279 }
280280 isClosedRead = true ;
281281 }
@@ -287,7 +287,7 @@ class _NativeSynchronousSocket extends _NativeSynchronousSocketNativeWrapper {
287287 if (isClosedRead) {
288288 closeSync ();
289289 } else {
290- _nativeShutdownWrite ();
290+ nativeShutdownWrite ();
291291 }
292292 isClosedWrite = true ;
293293 }
@@ -313,7 +313,7 @@ class _NativeSynchronousSocket extends _NativeSynchronousSocketNativeWrapper {
313313
314314 _BufferAndStart bufferAndStart =
315315 _ensureFastAndSerializableByteData (buffer, start, end);
316- var result = _nativeWrite (bufferAndStart.buffer, bufferAndStart.start,
316+ var result = nativeWrite (bufferAndStart.buffer, bufferAndStart.start,
317317 end - (start - bufferAndStart.start));
318318 if (result is OSError ) {
319319 throw new SocketException ("writeFromSync failed" , osError: result);
@@ -333,17 +333,17 @@ class _NativeSynchronousSocket extends _NativeSynchronousSocketNativeWrapper {
333333 // Native method declarations.
334334 static _nativeLookupRequest (host, int type)
335335 native "SynchronousSocket_LookupRequest" ;
336- _nativeCreateConnectSync (host, int port)
336+ nativeCreateConnectSync (host, int port)
337337 native "SynchronousSocket_CreateConnectSync" ;
338- _nativeAvailable () native "SynchronousSocket_Available" ;
339- _nativeCloseSync () native "SynchronousSocket_CloseSync" ;
340- int _nativeGetPort () native "SynchronousSocket_GetPort" ;
341- List _nativeGetRemotePeer () native "SynchronousSocket_GetRemotePeer" ;
342- _nativeRead (int len) native "SynchronousSocket_Read" ;
343- _nativeReadInto (List <int > buffer, int offset, int bytes)
338+ nativeAvailable () native "SynchronousSocket_Available" ;
339+ nativeCloseSync () native "SynchronousSocket_CloseSync" ;
340+ int nativeGetPort () native "SynchronousSocket_GetPort" ;
341+ List nativeGetRemotePeer () native "SynchronousSocket_GetRemotePeer" ;
342+ nativeRead (int len) native "SynchronousSocket_Read" ;
343+ nativeReadInto (List <int > buffer, int offset, int bytes)
344344 native "SynchronousSocket_ReadList" ;
345- _nativeShutdownRead () native "SynchronousSocket_ShutdownRead" ;
346- _nativeShutdownWrite () native "SynchronousSocket_ShutdownWrite" ;
347- _nativeWrite (List <int > buffer, int offset, int bytes)
345+ nativeShutdownRead () native "SynchronousSocket_ShutdownRead" ;
346+ nativeShutdownWrite () native "SynchronousSocket_ShutdownWrite" ;
347+ nativeWrite (List <int > buffer, int offset, int bytes)
348348 native "SynchronousSocket_WriteList" ;
349349}
0 commit comments