radare2/libr/vapi/r_socket.vapi
pancake 54bdfb22bd * Uppsercase classnames (rCore -> RCore)
- Fixes ruby warnings
  - Follow java syntax conventions
  - Helped to identify and fix bugs in many vapis
  - Sync swig examples
  - Add test-r_core.rb (ruby test for RCore)
* Some work in r_cons, some refactoring and cleanup
  - scr.html is now working again
  - w32 cons support should work now
  - Rename r_cons_get_columns -> r_cons_get_size()
  - But it needs more work
* Typedef all r_range, r_parse and r_anal structs
  - Add missing r_lib.pc in configure.acr
* 'make' clean now removes the libr* in swig/${LANG}/
2010-01-26 01:28:33 +01:00

29 lines
853 B
Vala

/* This vapi has been manually generated by me */
/* TODO: Add simpletype instead of int so, we can use it as an object */
[SimpleType]
[CCode (cname="int", cheader_filename="r_socket.h", cprefix="r_socket_")]
public struct Radare.RSocket : int
{
[CCode (cname="r_socket_connect")]
public RSocket.connect(string host, int port);
[CCode (cname="r_socket_listen")]
public RSocket.listen(int port);
public bool ready(int secs, int usecs);
public int read(ref string buf, int len);
public int write(int fd, void *buf, int len);
public int close();
public int gets(ref string buf, int len);
public int printf(string str, ...);
public int accept();
public void block(bool blocking);
public bool flush();
public string to_string();
/* UNIX ONLY */
public static int unix_connect(string file);
public static int unix_listen(string file);
}