This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Router#show run | |
Building configuration... | |
Current configuration : 1655 bytes | |
! | |
version 12.3 | |
service timestamps debug datetime msec | |
service timestamps log datetime msec | |
no service password-encryption | |
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Router#sh run | |
Building configuration... | |
Current configuration : 1655 bytes | |
! | |
version 12.3 | |
service timestamps debug datetime msec | |
service timestamps log datetime msec | |
no service password-encryption | |
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Router#sh run | |
Building configuration... | |
Current configuration : 1358 bytes | |
! | |
version 12.3 | |
service timestamps debug datetime msec | |
service timestamps log datetime msec | |
no service password-encryption | |
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Router#show ip arp | |
Protocol Address Age (min) Hardware Addr Type Interface | |
Internet 192.168.1.1 - 0013.7f16.a4f0 ARPA FastEthernet0/0 | |
Internet 192.168.0.1 - 0013.7f16.a4f0 ARPA FastEthernet0/0 | |
Internet 186.67.181.201 11 78da.6ec4.8cd4 ARPA FastEthernet0/1 | |
Internet 186.67.181.202 - 0013.7f16.a4f1 ARPA FastEthernet0/1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Server extends Verticle { | |
Vertx vertx = VertxFactory.newVertx(); | |
public void start() { | |
vertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() { | |
public void handle(HttpServerRequest req) { | |
System.out.println("Got request: " + req.uri()); | |
System.out.println("Headers are: "); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */ | |
describe('PhoneCat App', function () { | |
describe('Phone list view', function () { | |
beforeEach(function () { | |
browser.get('app/index.html'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package client; | |
import io.netty.bootstrap.Bootstrap; | |
import io.netty.channel.ChannelOption; | |
import io.netty.channel.EventLoopGroup; | |
import io.netty.channel.nio.NioEventLoopGroup; | |
import io.netty.channel.socket.nio.NioDatagramChannel; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class OutboundHandler extends ChannelOutboundHandlerAdapter{ | |
@Override | |
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception { | |
System.out.println("Bind happened"); | |
System.out.println(localAddress); | |
InetSocketAddress ipSocketAddress = new InetSocketAddress("255.255.255.255", 7686); | |
ByteBuf byteBuf = Unpooled.copiedBuffer("QOTM?", CharsetUtil.UTF_8); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FlushHandler extends ChannelOutboundHandlerAdapter { | |
@Override | |
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception { | |
ctx.flush(); | |
System.out.println("Flushed"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private byte[] toPrimitives(Byte[] oBytes){ | |
byte[] bytes; | |
int i =0; | |
for(Byte b : oBytes){ | |
bytes[i] = b; | |
} | |
return bytes; | |
} |
OlderNewer