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

Side by Side Diff: java/src/org/apache/tomcat/jni/Local.java

Issue 2842333002: Updated netty-tcnative to version 2.0.0.Final (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
(Empty)
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18 package org.apache.tomcat.jni;
19
20 /** Local socket
21 *
22 * @author Mladen Turk
23 */
24 public class Local {
25
26 /**
27 * Create a socket.
28 * @param path The address of the new socket.
29 * @param cont The parent pool to use
30 * @return The new socket that has been set up.
31 */
32 public static native long create(String path, long cont)
33 throws Exception;
34
35 /**
36 * Bind the socket to its associated port
37 * @param sock The socket to bind
38 * @param sa The socket address to bind to
39 * This may be where we will find out if there is any other process
40 * using the selected port.
41 */
42 public static native int bind(long sock, long sa);
43
44 /**
45 * Listen to a bound socket for connections.
46 * @param sock The socket to listen on
47 * @param backlog The number of outstanding connections allowed in the socke ts
48 * listen queue. If this value is less than zero, for NT pip es
49 * the number of instances is unlimited.
50 *
51 */
52 public static native int listen(long sock, int backlog);
53
54 /**
55 * Accept a new connection request
56 * @param sock The socket we are listening on.
57 * @return A copy of the socket that is connected to the socket that
58 * made the connection request. This is the socket which should
59 * be used for all future communication.
60 */
61 public static native long accept(long sock)
62 throws Exception;
63
64 /**
65 * Issue a connection request to a socket either on the same machine
66 * or a different one.
67 * @param sock The socket we wish to use for our side of the connection
68 * @param sa The address of the machine we wish to connect to.
69 * Unused for NT Pipes.
70 */
71 public static native int connect(long sock, long sa);
72
73 }
OLDNEW
« no previous file with comments | « java/src/org/apache/tomcat/jni/LibraryNotFoundError.java ('k') | java/src/org/apache/tomcat/jni/Lock.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698