Skip to content
/ ASync Public

ASync is an asynchronous library to handle asynchronous communication over sockets, console and web. It provides an easy to use interface, simplifying the work that needs to be done. All connection types (socket/console/web) uses a similar approach, making it easy to switch between them.

License

Notifications You must be signed in to change notification settings

podal/ASync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#ASync IO ASync is asyncronius library to deal with asyncrone communication: Socket, Console and Web.

##Get starting Checkout code and run

mvn clean install

add following in your pom.xml

<project>
...
	<dependencies>
		...
		<dependency>
			<groupId>com.github.podal.async</groupId>
			<artifactId>asyncdefault</artifactId>
			<version>1.0.1-SNAPSHOT</version>
		</dependency>
		...
	</dependencies
</project>

and

ASync async = new ASync();
Dispatcher disp = async.createDispatcher();
async.console().start(disp.createCallback());
async.socket().connectTo("127.0.0.1", 12345, disp.createCallback(new DoExit("Server did close!")));

and you have a connection to a socket that takes input and output from console.

See JavaDoc in net.async.ASync for full doc.

About

ASync is an asynchronous library to handle asynchronous communication over sockets, console and web. It provides an easy to use interface, simplifying the work that needs to be done. All connection types (socket/console/web) uses a similar approach, making it easy to switch between them.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages