pastebin

Private paste #61741: tttt

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcp2.h>

int main(int argc, char *argv[])
{
	FcpMessage *msg;
	FcpServer *serv;
	int port=9481;
	char *host="127.0.0.1";
	char key[5000];
	char mykey[]="CHK@~1D4uM8BqfGbHVjah91Izh-jIuZUn26S0T~uH-lHOW4,zvZCH2oY0IqsesCjH3E3rCUNObzbYEyYl4HWD0nqF-c,AAIA--8";

	msg = FcpMessageCreate(2*1024);
	if (msg==NULL)
		return(1);
	/* Connect to the server */
	serv = FcpServerConnect(host, port, 64*1024, 64*1024);
	if (serv==NULL)
	{
		printf("Couldn't connect to %s %d!!\n", host, port);
		return(1);
	}
	/* Send the client hello message */
	FcpMessageSend(serv, "ClientGet", 14, 
	"IgnoreDS", "false", "DSOnly", "false",\
	"URI",mykey,"Identifier","this is a test grab",\
	"Verbosity","0","ReturnType","direct","MaxSize","100",\
	"MaxTempSize","1000","MaxRetries","100","PriorityClass","1",\
	"Persistence","reboot","ClientToken","hello","Global","false",
	"BinaryBlob","false"
	);
	int ret = FcpMessageRecv(serv, msg);
	printf("msg:%s\n",msg);
	/* Clean up */
	FcpServerDisconnect(serv);
	FcpMessageDestroy(msg);

	return(0);
}

New paste

  Language:
Private   — Wrap long lines  —  5 + 2 =   —  

About this pastebin

Welcome to the bulix.org / pastebin. Please don't use this pastebin for illegal purposes, defamation or kitten-squashing.

This pastebin is written using PHP and MySQL and relies on Alex Gorbatchev's syntax hhighlighter (JavaScript based). To avoid spam, you will be required to complete a small mathematical challenge when adding a new paste.

New! Try the pastebin command-line tool: paste.py (requires Python and python-beautifulsoup).

30 more recent public pastes


# Title Type Date
1 Untitled ASCII paste by 212.126.160.18 ASCII 10 Mar 2010, 16:41
2 QT buttons ASCII 10 Mar 2010, 16:01
3 LinqPad Azure Table storage C# 10 Mar 2010, 08:09
4 Jasssystem ASCII 10 Mar 2010, 06:59
5 Untitled ASCII paste by 82.247.183.72 ASCII 09 Mar 2010, 21:10
6 Untitled ASCII paste by 82.247.183.72 ASCII 09 Mar 2010, 20:53
7 Untitled ASCII paste by 124.85.38.49 ASCII 09 Mar 2010, 13:02
8 Untitled ASCII paste by 77.57.166.143 ASCII 09 Mar 2010, 00:23
9 number-bullet.scm ASCII 08 Mar 2010, 10:57
10 numbers.scm ASCII 08 Mar 2010, 10:57
11 Untitled ASCII paste by 77.57.166.143 ASCII 08 Mar 2010, 03:12
12 Untitled ASCII paste by 82.247.183.72 ASCII 07 Mar 2010, 14:46
13 Untitled ASCII paste by 82.247.183.72 ASCII 07 Mar 2010, 14:45
14 Untitled ASCII paste by 82.247.183.72 ASCII 07 Mar 2010, 14:40
15 Untitled ASCII paste by 82.73.10.131 ASCII 06 Mar 2010, 23:39
16 Untitled ASCII paste by 82.247.183.72 ASCII 05 Mar 2010, 11:58
17 Untitled ASCII paste by 82.247.183.72 ASCII 05 Mar 2010, 11:55
18 Untitled ASCII paste by 82.247.183.72 ASCII 05 Mar 2010, 09:20
19 Untitled ASCII paste by 90.35.20.41 ASCII 04 Mar 2010, 14:22
20 Untitled ASCII paste by 82.247.183.72 ASCII 04 Mar 2010, 11:53
21 Untitled ASCII paste by 82.247.183.72 ASCII 04 Mar 2010, 11:53
22 Untitled ASCII paste by 82.247.183.72 ASCII 03 Mar 2010, 17:01
23 GoUrXoUjFyycZcLdUt Java 02 Mar 2010, 21:32
24 Untitled ASCII paste by 82.247.183.72 ASCII 02 Mar 2010, 10:36
25 Untitled PHP paste by 78.86.108.157 PHP 01 Mar 2010, 08:22
26 Make test ASCII 28 Feb 2010, 20:34
27 Untitled ASCII paste by 82.247.183.72 ASCII 28 Feb 2010, 20:27
28 iptables ASCII 28 Feb 2010, 16:04
29 Untitled ASCII paste by 93.16.194.9 ASCII 27 Feb 2010, 18:31
30 Untitled Python paste by 217.136.40.84 Python 27 Feb 2010, 15:22

Powered by the Bulix.org Code Pastebin, by Maxime Petazzoni. View pastebin statistics.