pastebin

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.

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  —  2 + 1 =   —  

30 more recent public pastes


# Title Type Date
1 Untitled ASCII paste by 195.168.200.112 ASCII 20 Nov 2008, 21:48
2 Untitled ASCII paste by 91.172.54.239 ASCII 20 Nov 2008, 21:19
3 Untitled C++ paste by 24.190.28.19 C++ 20 Nov 2008, 01:26
4 aaaaa ASCII 19 Nov 2008, 20:11
5 Untitled ASCII paste by 116.49.67.17 ASCII 19 Nov 2008, 08:11
6 Untitled ASCII paste by 24.22.59.84 ASCII 19 Nov 2008, 00:25
7 Python xlutils Filters Python 19 Nov 2008, 00:09
8 Untitled ASCII paste by 85.195.3.209 ASCII 18 Nov 2008, 22:04
9 Untitled ASCII paste by 85.195.3.209 ASCII 18 Nov 2008, 22:02
10 Untitled ASCII paste by 86.138.25.57 ASCII 18 Nov 2008, 13:49
11 Untitled XML/HTML paste by 90.227.235.228 XML/HTML 18 Nov 2008, 13:37
12 xorg.conf ASCII 18 Nov 2008, 07:35
13 Untitled PHP paste by 168.120.50.72 PHP 17 Nov 2008, 05:53
14 Untitled ASCII paste by 76.106.0.187 ASCII 17 Nov 2008, 02:39
15 Common Functions PHP 17 Nov 2008, 01:19
16 Untitled PHP paste by 76.106.0.187 PHP 17 Nov 2008, 01:05
17 Untitled PHP paste by 76.106.0.187 PHP 17 Nov 2008, 00:57
18 Login PHP 17 Nov 2008, 00:55
19 Untitled Visual Basic paste by 217.211.80.109 Visual Basic 16 Nov 2008, 21:58
20 Untitled ASCII paste by 64.198.244.3 ASCII 16 Nov 2008, 20:34
21 Untitled ASCII paste by 64.198.244.3 ASCII 16 Nov 2008, 20:28
22 nvidia make log ASCII 15 Nov 2008, 15:33
23 Untitled ASCII paste by 86.164.113.159 ASCII 13 Nov 2008, 23:27
24 Untitled Java paste by 87.194.35.141 Java 13 Nov 2008, 16:43
25 Untitled ASCII paste by 82.243.231.30 ASCII 12 Nov 2008, 02:36
26 Untitled ASCII paste by 76.178.26.234 ASCII 11 Nov 2008, 23:34
27 java version ASCII 11 Nov 2008, 23:31
28 Untitled C++ paste by 86.129.206.36 C++ 11 Nov 2008, 22:51
29 Untitled C++ paste by 86.129.206.36 C++ 11 Nov 2008, 22:42
30 Untitled ASCII paste by 76.121.208.173 ASCII 11 Nov 2008, 13:00

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