public abstract class SocketBase extends Own implements IPollEvents, Pipe.IPipeEvents
| Modifier and Type | Field and Description |
|---|---|
protected ValueReference<Integer> |
errno |
| Modifier | Constructor and Description |
|---|---|
protected |
SocketBase(Ctx parent_,
int tid_,
int sid_) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept_event() |
boolean |
bind(String addr) |
boolean |
check_tag() |
void |
close() |
void |
connect_event() |
boolean |
connect(String addr_) |
static SocketBase |
create(int type_,
Ctx parent_,
int tid_,
int sid_) |
void |
destroy() |
int |
errno() |
void |
event_accept_failed(String addr,
int errno) |
void |
event_accepted(String addr,
SelectableChannel ch) |
void |
event_bind_failed(String addr,
int errno) |
void |
event_close_failed(String addr,
int errno) |
void |
event_closed(String addr,
SelectableChannel ch) |
void |
event_connect_delayed(String addr,
int errno) |
void |
event_connect_retried(String addr,
int interval) |
void |
event_connected(String addr,
SelectableChannel ch) |
void |
event_disconnected(String addr,
SelectableChannel ch) |
void |
event_listening(String addr,
SelectableChannel ch) |
SelectableChannel |
get_fd() |
Mailbox |
get_mailbox() |
int |
getsockopt(int option_) |
Object |
getsockoptx(int option_) |
boolean |
has_in() |
boolean |
has_out() |
void |
hiccuped(Pipe pipe_) |
void |
in_event() |
protected void |
monitor_event(ZMQ.Event event) |
boolean |
monitor(String addr_,
int events_) |
void |
out_event() |
protected void |
process_bind(Pipe pipe_) |
protected void |
process_destroy() |
protected void |
process_stop() |
protected void |
process_term(int linger_) |
void |
read_activated(Pipe pipe_) |
Msg |
recv(int flags_) |
boolean |
send(Msg msg_,
int flags_) |
void |
setsockopt(int option_,
Object optval_) |
void |
start_reaping(Poller poller_) |
protected void |
stop_monitor() |
void |
stop() |
boolean |
term_endpoint(String addr_) |
void |
terminated(Pipe pipe_) |
void |
timer_event(int id_) |
String |
toString() |
String |
typeString() |
void |
write_activated(Pipe pipe_) |
protected abstract void |
xattach_pipe(Pipe pipe_,
boolean icanhasall_) |
protected boolean |
xhas_in() |
protected boolean |
xhas_out() |
protected void |
xhiccuped(Pipe pipe_) |
protected void |
xread_activated(Pipe pipe_) |
protected Msg |
xrecv() |
protected boolean |
xsend(Msg msg_) |
protected boolean |
xsetsockopt(int option_,
Object optval_) |
protected abstract void |
xterminated(Pipe pipe_) |
protected void |
xwrite_activated(Pipe pipe_) |
inc_seqnum, is_terminating, launch_child, process_own, process_seqnum, process_term_ack, process_term_req, register_term_acks, term_child, terminate, unregister_term_ackchoose_io_thread, destroy_socket, find_endpoint, get_ctx, get_tid, process_activate_read, process_activate_write, process_attach, process_command, process_hiccup, process_pipe_term_ack, process_pipe_term, process_plug, process_reap, process_reaped, register_endpoint, send_activate_read, send_activate_write, send_attach, send_attach, send_bind, send_bind, send_done, send_hiccup, send_own, send_pipe_term_ack, send_pipe_term, send_plug, send_plug, send_reap, send_reaped, send_stop, send_term_ack, send_term_req, send_term, unregister_endpointsprotected ValueReference<Integer> errno
protected SocketBase(Ctx parent_, int tid_, int sid_)
protected abstract void xattach_pipe(Pipe pipe_, boolean icanhasall_)
protected abstract void xterminated(Pipe pipe_)
public boolean check_tag()
public static SocketBase create(int type_, Ctx parent_, int tid_, int sid_)
public Mailbox get_mailbox()
public void stop()
public void setsockopt(int option_,
Object optval_)
public int getsockopt(int option_)
public Object getsockoptx(int option_)
public boolean bind(String addr)
public boolean connect(String addr_)
public boolean term_endpoint(String addr_)
public boolean send(Msg msg_, int flags_)
public Msg recv(int flags_)
public void close()
public boolean has_in()
public boolean has_out()
public void start_reaping(Poller poller_)
protected void process_stop()
process_stop in class ZObjectprotected void process_bind(Pipe pipe_)
process_bind in class ZObjectprotected void process_term(int linger_)
process_term in class Ownprotected void process_destroy()
process_destroy in class Ownprotected boolean xsetsockopt(int option_,
Object optval_)
protected boolean xhas_out()
protected boolean xsend(Msg msg_)
protected boolean xhas_in()
protected Msg xrecv()
protected void xread_activated(Pipe pipe_)
protected void xwrite_activated(Pipe pipe_)
protected void xhiccuped(Pipe pipe_)
public void in_event()
in_event in interface IPollEventspublic void out_event()
out_event in interface IPollEventspublic void connect_event()
connect_event in interface IPollEventspublic void accept_event()
accept_event in interface IPollEventspublic void timer_event(int id_)
timer_event in interface IPollEventspublic void read_activated(Pipe pipe_)
read_activated in interface Pipe.IPipeEventspublic void write_activated(Pipe pipe_)
write_activated in interface Pipe.IPipeEventspublic void hiccuped(Pipe pipe_)
hiccuped in interface Pipe.IPipeEventspublic void terminated(Pipe pipe_)
terminated in interface Pipe.IPipeEventspublic boolean monitor(String addr_, int events_)
public void event_connected(String addr, SelectableChannel ch)
public void event_connect_delayed(String addr, int errno)
public void event_connect_retried(String addr, int interval)
public void event_listening(String addr, SelectableChannel ch)
public void event_bind_failed(String addr, int errno)
public void event_accepted(String addr, SelectableChannel ch)
public void event_accept_failed(String addr, int errno)
public void event_closed(String addr, SelectableChannel ch)
public void event_close_failed(String addr, int errno)
public void event_disconnected(String addr, SelectableChannel ch)
protected void monitor_event(ZMQ.Event event)
protected void stop_monitor()
public SelectableChannel get_fd()
public String typeString()
public int errno()
Copyright © 2014. All rights reserved.