- Follow step 1 and 3 from the steps above to create a new socket for the client and establish address config to use. Use the same port as in Server and set IP as
127.0.0.1
if required. You might needinet_pton
to do so. It converts String address127.0.0.1
into network address to be used. This is stored in thesin_addr
object. - Connect to the already running server at the same port using the address config and the socket.
- Read and send the data from the socket similar to step 7 and 8 above.
- Close the socket whenever required.
private void setupTimber() { | |
Timber.plant(new Timber.DebugTree() { | |
@Override | |
protected String createStackElementTag(StackTraceElement element) { | |
return "timber " + super.createStackElementTag(element) + " : "+ element.getMethodName()+" : " + element.getLineNumber(); | |
} | |
}); | |
} |
#include<wiringPi.h> | |
#include<stdio.h> | |
#define RS 11 | |
#define EN 10 | |
#define D4 6 | |
#define D5 5 | |
#define D6 4 | |
#define D7 1 |
#include<dht.h> // Including library for dht | |
#include<LiquidCrystal.h> | |
LiquidCrystal lcd(2, 3, 4, 5, 6, 7); | |
#define dht_dpin 12 | |
dht DHT; | |
byte degree[8] = | |
{ |
import net.named_data.jndn.*; | |
import net.named_data.jndn.util.SegmentFetcher; | |
import java.io.IOException; | |
import net.named_data.jndn.util.Blob; | |
public class Myclass { | |
private static String formatThroughput(double throughput) | |
{ |
import net.named_data.jndn.*; | |
import net.named_data.jndn.util.SegmentFetcher; | |
import java.io.IOException; | |
import net.named_data.jndn.util.Blob; | |
import net.named_data.jndn.security.v2.ValidationPolicyAcceptAll; | |
import net.named_data.jndn.security.v2.Validator; | |
import net.named_data.jndn.NetworkNack; | |
import net.named_data.jndn.OnData; | |
import net.named_data.jndn.OnNetworkNack; | |
import net.named_data.jndn.OnTimeout; |
Google Summer of Code is a global program focused on bringing more student developers into open source software development. Students work with an open-source organization on a 3-month programming project during their break from school.
The actual timeline of GSoC is available here. The main coding period spans between 27 May and 19 August and is divided into 3 parts each one following an evaluation.
NpChat is a photo and file-sharing application built on Android and is inspired by Snapchat. It runs over the Named Data Network (NDN) and focuses on decentralised information sharing architecture. It stands as one of the best examples of Android application developed on the new Internet architecture.
The project description can be found here. The project aims to improve the functionalities of the erstwhile NpChat application. D
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | |
/** | |
* Copyright (c) 2017-2019, Regents of the University of California. | |
* | |
* This file is part of ndncert, a certificate management system based on NDN. | |
* | |
* ndncert is free software: you can redistribute it and/or modify it under the terms | |
* of the GNU General Public License as published by the Free Software Foundation, either | |
* version 3 of the License, or (at your option) any later version. | |
* |
NpChat is a photo and file-sharing application built on Android and is inspired by Snapchat. It runs over the Named Data Network (NDN) and focuses on decentralised information sharing architecture. It stands as one of the best examples of Android application developed on the new Internet architecture.
The project description can be found here. During Google Summer of Code 2019, I contributed to the project and developed several features to improve the NpChat app, its supporting library(Jndn) and the Identity Manager.
npChat is a photo and file-sharing application built on Android and is inspired by Snapchat.
We present npChat, an Android application that allows users to capture and share multimedia with friends in a secure and fully decentralized way, while still giving users complete control over their data as well as communication.
The project's goals are to develop the completely decentralized application to runs over the Named Data Network (NDN), utilize a partial sync protocol and utilize a Web-Of-Trust like model